/* Connect Towfu (activate.html): a step-by-step demo of signing in, then the account help. */

.act-page { padding: 56px var(--gutter) 88px; }
.act-page section { padding: 0; border-top: 0; }
.act-kicker { margin: 0 0 10px; font: 600 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }

/* ---- hero ---- */
.act-hero { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.act-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0 0 14px; }
.act-lede { margin: 0 auto; max-width: 600px; color: var(--text-muted); font-size: 1.1rem; }
.act-lede strong { color: var(--text); }
.act-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; padding: 0; }
.act-facts li { border: 1px solid var(--border-strong); background: var(--bg-elev); border-radius: var(--radius-pill); padding: 6px 14px; color: var(--text-muted); font-size: 0.9rem; }
.act-facts b { color: var(--text); font-weight: 650; }

/* ---- demo: step list + stage ---- */
.act-demo { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.act-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; position: sticky; top: 84px; }
.act-steps a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); color: var(--text-muted); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.act-steps a:hover { border-color: var(--border-strong); color: var(--text); }
.act-steps b { display: block; color: var(--text); font-weight: 600; }
.act-steps small { display: block; font-size: 0.82rem; color: var(--text-subtle); }
.act-steps .n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); font: 600 0.85rem/1 var(--mono); color: var(--text-muted); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.act-steps a[aria-current='step'] { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: color-mix(in srgb, var(--brand) 9%, var(--bg-elev)); }
.act-steps a[aria-current='step'] .n { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.act-steps a.done .n { border-color: color-mix(in srgb, var(--ok) 60%, transparent); color: var(--ok); }

.act-stage { position: relative; display: grid; gap: 28px; }
.act-panel { display: grid; gap: 18px; scroll-margin-top: 90px; }
.act-caption h3 { margin: 0 0 6px; font-size: 1.3rem; }
.act-caption p { margin: 0; color: var(--text-muted); }
.act-caption strong { color: var(--text); }
.act-step-label { margin: 0 0 4px !important; font: 600 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-subtle) !important; }

/* With JS: one panel at a time, with controls. Without JS every step stays visible. */
.act-js .act-stage { gap: 0; }
.act-js .act-panel { display: none; }
.act-js .act-panel.on { display: grid; animation: act-in 0.35s ease both; }
@keyframes act-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.act-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.act-controls button[disabled] { opacity: 0.4; cursor: default; }
.act-dots { display: flex; gap: 6px; }
.act-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); transition: background 0.2s, width 0.2s; }
.act-dots i.on { width: 20px; border-radius: var(--radius-pill); background: var(--brand); }
.act-new { margin: 22px 0 0; color: var(--text-muted); }
.act-demo > .act-new { grid-column: 2; margin-top: 0; }
@media (max-width: 860px) { .act-demo > .act-new { grid-column: 1; } }

/* ---- the mock window ---- */
.act-window { border-radius: var(--radius-l); border: 1px solid var(--border-strong); background: #0b0b0d; box-shadow: 0 30px 80px -30px #000c, 0 0 0 1px rgb(124 133 245 / 0.06); overflow: hidden; }
.aw-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface); font-size: 0.8rem; color: var(--text-subtle); }
.aw-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.aw-bar span { margin-left: 8px; }
.aw-url { flex: 1; max-width: 340px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--bg); font-family: var(--mono); font-size: 0.78rem; }
.aw-body { min-height: 300px; padding: 26px; font-size: 0.92rem; }
.aw-body p { margin: 0; }

.mock-btn { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: var(--radius-s); border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.mock-btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.act-panel.on .mock-btn.hl { animation: act-pulse 1.8s ease-in-out 0.5s 3; }
@keyframes act-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(124 133 245 / 0); } 50% { box-shadow: 0 0 0 6px rgb(124 133 245 / 0.35); } }

.aw-smartscreen { background: #0f2a4a; color: #e8f0fb; display: flex; flex-direction: column; gap: 12px; }
.ss-title { font-size: 1.4rem; font-weight: 300; }
.ss-text, .ss-meta { color: #c3d4ea; }
.ss-more u { color: #9cc6ff; }
.ss-btns { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; justify-content: flex-end; }
.aw-smartscreen .mock-btn { background: transparent; border-color: #7aa7d8; color: #e8f0fb; }
.aw-smartscreen .mock-btn.hl { background: #e8f0fb; color: #0f2a4a; }

.aw-settings { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0; padding: 0; }
.set-nav { list-style: none; margin: 0; padding: 18px 10px; border-right: 1px solid var(--border); display: grid; align-content: start; gap: 2px; color: var(--text-subtle); font-size: 0.84rem; }
.set-nav li { padding: 7px 10px; border-radius: var(--radius-s); }
.set-nav li.on { background: var(--surface-2); color: var(--text); }
.set-main { padding: 22px; display: grid; align-content: start; gap: 10px; }
.set-h { font-weight: 650; font-size: 1.05rem; }
.set-sub { color: var(--text-subtle); font-size: 0.84rem; }
.set-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; }
.set-row + .set-row { border-top: 1px solid var(--border); }
.set-row b { display: block; font-weight: 600; }
.set-row small { display: flex; align-items: center; gap: 6px; color: var(--text-subtle); font-size: 0.8rem; }
.set-wait, .set-ok { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.set-wait b { font-family: var(--mono); color: var(--text); letter-spacing: 0.04em; }
.set-ok { color: var(--ok); font-weight: 600; }
.ok-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--brand); animation: act-spin 0.9s linear infinite; }
@keyframes act-spin { to { transform: rotate(360deg); } }

.aw-approve { display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin: 0 auto; justify-content: center; }
.ap-title { font-size: 1.3rem; font-weight: 650; line-height: 1.3; }
.ap-text { color: var(--text-muted); }
.ap-code { font-family: var(--mono); color: var(--text-subtle); }
.aw-approve .ss-btns { justify-content: flex-start; margin-top: 6px; }

/* ---- section separators and help sections ---- */
.act-rule { border: 0; height: 1px; max-width: 920px; margin: 56px auto; background: linear-gradient(90deg, transparent, var(--border-strong) 20%, color-mix(in srgb, var(--brand) 45%, var(--border-strong)) 50%, var(--border-strong) 80%, transparent); }
.act-section { max-width: 920px; margin: 0 auto; }
.act-sec-head { margin-bottom: 24px; }
.act-sec-head h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -0.02em; }
.act-sec-head p { margin: 0; color: var(--text-muted); }
.act-sec-head strong { color: var(--text); }

.act-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.act-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.act-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--bg-elev); }
.act-card h3 { margin: 0 0 6px; font-size: 1rem; }
.act-card p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.act-card strong { color: var(--text); }

.pc-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.pc { display: grid; justify-items: center; gap: 2px; padding: 18px 10px; border-radius: var(--radius-l); border: 1px solid var(--border); background: var(--surface); text-align: center; }
.pc-ico { font-size: 1.5rem; line-height: 1; margin-bottom: 6px; }
.pc b { font-size: 0.92rem; }
.pc small { font-size: 0.78rem; color: var(--text-subtle); }
.pc.on { border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); }
.pc.on small { color: var(--ok); }
.pc.new { border-style: dashed; border-color: var(--border-strong); background: transparent; color: var(--text-muted); }

.timeline { margin: 4px 0 20px; }
.tl-track { height: 8px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.tl-fill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ok), var(--warn) 80%, var(--danger)); opacity: 0.85; }
.tl-marks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.8rem; color: var(--text-subtle); }

.keep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.keep-list li { position: relative; padding: 14px 16px 14px 46px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); color: var(--text-muted); }
.keep-list li::before { content: '✓'; position: absolute; left: 16px; top: 14px; color: var(--ok); font-weight: 700; }
.keep-list b { color: var(--text); }

.act-faq { display: grid; gap: 10px; }
.act-faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.act-faq summary { cursor: pointer; position: relative; padding: 14px 44px 14px 16px; font-weight: 600; list-style: none; }
.act-faq summary::-webkit-details-marker { display: none; }
.act-faq summary::after { content: '+'; position: absolute; right: 18px; top: 14px; color: var(--text-subtle); font-weight: 400; }
.act-faq details[open] summary::after { content: '−'; }
.act-faq details p { margin: 0; padding: 0 16px 16px; color: var(--text-muted); }
.act-faq strong { color: var(--text); }

.send-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.send-grid > div { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--bg-elev); }
.send-h { margin: 0 0 12px; font-weight: 600; font-size: 0.93rem; }
.send-h.ok { color: var(--ok); }
.send-h.no { color: var(--text-muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); font-size: 0.85rem; }
.chips.muted li { color: var(--text-subtle); text-decoration: line-through; text-decoration-color: var(--text-subtle); }

@media (max-width: 860px) {
  .act-demo { grid-template-columns: minmax(0, 1fr); }
  .act-steps { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act-steps small { display: none; }
  .act-cards, .act-cards.two, .send-grid { grid-template-columns: minmax(0, 1fr); }
  .pc-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .act-page { padding-top: 36px; }
  .act-steps a { padding: 10px 12px; gap: 10px; }
  .aw-body { padding: 18px; min-height: 260px; }
  .aw-settings { grid-template-columns: minmax(0, 1fr); }
  .set-nav { display: none; }
  .set-row { flex-wrap: wrap; }
  .tl-marks span:nth-child(2), .tl-marks span:nth-child(3) { display: none; }
  .act-rule { margin: 44px 0; }
}
