/* How-to page (/guide). Builds on landing.css. */
.guide-hero { padding: 48px 0 28px; background: linear-gradient(180deg, var(--green-soft), #fff 80%); }
.guide-hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.2; margin: 0; }
.guide-hero .lead { margin: 14px auto 26px; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 620px; margin: 0 auto; }
.role-tab { display: flex; align-items: center; gap: 14px; text-align: left; text-decoration: none; color: var(--text); background: #fff; border: 2px solid var(--border); border-radius: 18px; padding: 16px 18px; transition: border-color .15s, box-shadow .15s; }
.role-tab:hover { border-color: #86efac; }
.role-tab[aria-selected='true'] { border-color: var(--green); box-shadow: 0 0 0 4px #dcfce7; }
.role-tab:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.role-tab svg { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--green-soft); fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.role-tab[aria-selected='true'] svg { background: var(--green); stroke: #fff; }
.role-tab > span { display: grid; gap: 2px; }
.role-tab b { font-size: 17px; }
.role-tab small { color: var(--muted); font-size: 14px; }
@media (max-width: 520px) {
  .role-switch { grid-template-columns: 1fr; }
}

.guide { padding: 8px 0 56px; }
.guide-toc { position: sticky; top: 66px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; background: rgb(255 255 255 / 94%); backdrop-filter: blur(6px); scrollbar-width: none; border-bottom: 1px solid var(--border); }
.guide-toc::-webkit-scrollbar { display: none; }
.guide-toc a { flex: none; text-decoration: none; color: var(--text-2); font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; background: var(--alt); }
.guide-toc a:hover { background: var(--green-soft); color: var(--green-dark); }
.g-steps { list-style: none; margin: 0; padding: 0; }
.g-step { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding: 44px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 130px; }
.g-step:last-child { border-bottom: 0; }
.g-text { display: grid; gap: 12px; align-content: start; justify-items: start; }
.g-text h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); line-height: 1.3; }
.g-text p { margin: 0; color: var(--text-2); font-size: 17px; }
.g-text b { color: var(--text); }
.g-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 21px; }
.g-tips, .g-sub { margin: 0; padding: 0; display: grid; gap: 10px; color: var(--text-2); font-size: 16px; list-style: none; }
.g-tips li { position: relative; padding-left: 30px; }
.g-tips li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.g-sub { counter-reset: sub; }
.g-sub li { counter-increment: sub; position: relative; padding-left: 36px; }
.g-sub li::before { content: counter(sub); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 8px; background: var(--green-soft); color: var(--green-dark); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.lang-bn .g-sub li::before { content: counter(sub, bengali); }
.g-note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 14px; font-size: 15px !important; }
.g-copied { color: var(--green-dark); font-weight: 700; font-size: 14px; }
.g-mock { display: flex; justify-content: center; }
@media (max-width: 860px) {
  .g-step { grid-template-columns: 1fr; gap: 22px; padding: 34px 0; }
}

/* Drawings of the real app screens */
.mock { width: 100%; max-width: 300px; border-radius: 28px; border: 8px solid #1f2937; background: #f4f6f8; box-shadow: 0 24px 48px -24px rgb(15 23 42 / 45%); overflow: hidden; font-size: 13px; }
.m-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 13px; min-height: 42px; }
.m-logo { width: 20px; height: 20px; border-radius: 6px; background: var(--green); flex: none; }
.m-body { display: grid; gap: 8px; padding: 12px; }
.m-h { font-size: 15px; }
.m-label { color: var(--muted); font-weight: 700; font-size: 11px; margin-bottom: -4px; }
.m-input { display: block; background: #fff; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 8px 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-input.big { font-size: 16px; }
.m-btn { display: block; text-align: center; border-radius: 10px; padding: 10px; font-weight: 800; background: var(--green); color: #fff; }
.m-btn.ghost { background: #fff; color: var(--text); border: 1.5px solid #cbd5e1; }
.m-btn.yellow { background: var(--yellow); color: var(--ink); font-size: 15px; padding: 12px; }
.m-btn.ghost-dark { background: transparent; color: #f4f4f5; border: 1.5px solid #3f3f46; }
/* A finger-tap dot shows what to press. */
.m-btn.tap { position: relative; }
.m-btn.tap::after { content: ''; position: absolute; right: -4px; bottom: -10px; width: 22px; height: 22px; border-radius: 50%; background: rgb(250 204 21 / 60%); border: 2px solid #fff; box-shadow: 0 0 0 6px rgb(250 204 21 / 25%); animation: g-tap 1.8s ease-in-out infinite; }
.m-btn.yellow.tap::after { background: rgb(21 128 61 / 55%); box-shadow: 0 0 0 6px rgb(21 128 61 / 20%); }
@keyframes g-tap { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(.8); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .m-btn.tap::after { animation: none; } }
.m-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.m-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.m-choice { display: grid; place-items: center; text-align: center; min-height: 40px; padding: 6px 4px; border-radius: 10px; background: #fff; border: 1.5px solid #cbd5e1; font-weight: 700; font-size: 12px; line-height: 1.25; }
.m-choice.picked { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.m-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.m-progress i { height: 5px; border-radius: 3px; background: var(--border); }
.m-progress i.on { background: var(--green); }
.m-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.m-row > span { display: grid; font-weight: 700; }
.m-row small { color: var(--muted); font-weight: 500; font-size: 11px; }
.m-chip { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--alt); color: var(--text-2); }
.m-chip.ok { background: #dcfce7; color: #166534; }
.m-chip.on { background: var(--green); color: #fff; }
.m-chips { display: flex; gap: 6px; }
.m-tile { display: grid; gap: 2px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.m-tile small { color: var(--text-2); font-weight: 700; font-size: 11px; }
.m-tile b { font-size: 20px; }
.m-tile b i { font-style: normal; font-size: 12px; color: var(--muted); }
.m-tile.green { background: var(--green); border-color: var(--green); color: #fff; }
.m-tile.green small { color: #dcfce7; }
.m-tile.green b { font-size: 24px; }
.m-alert { display: grid; gap: 2px; background: #fef2f2; border: 1.5px solid #fca5a5; border-radius: 12px; padding: 10px; }
.m-alert b { color: #b91c1c; }
.m-alert small { color: var(--text-2); }
.m-bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; padding: 6px; background: #fff; border-radius: 10px; border: 1px solid var(--border); }
.m-bars i { flex: 1; background: var(--green); border-radius: 3px 3px 0 0; }
.mock.dark { background: #111214; color: #f4f4f5; }
.mock.dark .m-bar { background: #18181b; border-color: #27272a; justify-content: flex-end; }
.mock.dark .m-label { color: #a1a1aa; }
.mock.dark .m-input { background: #18181b; border-color: #3f3f46; color: #fff; }
.mock.dark .m-choice { background: #18181b; border-color: #3f3f46; color: #e4e4e7; }
.mock.dark .m-choice.picked { border-color: var(--yellow); background: #3f3a12; color: var(--yellow); }
.mock.dark .m-row { background: #18181b; border-color: #27272a; }
.mock.dark .m-row small { color: #a1a1aa; }
.mock.dark .m-h { color: #fff; }
.m-pill { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #14532d; color: #bbf7d0; }
.m-pill.warn { background: #713f12; color: #fde68a; }
.m-ticket { display: grid; gap: 4px; background: #18181b; border: 1.5px solid #3f3f46; border-radius: 12px; padding: 12px; }
.m-ticket.ok { border-color: #22c55e; }
.m-ticket small { color: #a1a1aa; font-weight: 700; }
.m-ticket strong { font-size: 28px; color: var(--yellow); letter-spacing: 1px; }
.m-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 4px -12px -12px; padding: 8px 4px; background: #18181b; border-top: 1px solid #27272a; text-align: center; font-size: 10px; color: #a1a1aa; }
.m-tabs b { color: var(--yellow); }

.cheat { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; padding: 20px 22px; border-radius: 18px; background: var(--alt); }
.cheat h2 { margin: 0 0 4px; font-size: 20px; }
.cheat p { margin: 0; color: var(--text-2); }

/* Printing the gate card: only the staff steps, two per row, without the drawings. */
@media print {
  body.print-gate .site-header, body.print-gate .guide-hero, body.print-gate #owner, body.print-gate #questions,
  body.print-gate .final-cta, body.print-gate .site-footer, body.print-gate .guide-toc, body.print-gate .cheat,
  body.print-gate .g-mock { display: none !important; }
  body.print-gate #staff { display: block !important; padding: 0; }
  body.print-gate .g-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  body.print-gate .g-step { display: block; padding: 10px 0; border-bottom: 1px solid #ccc; break-inside: avoid; }
  body.print-gate .g-text { gap: 6px; }
  body.print-gate .g-text h2 { font-size: 16px; }
  body.print-gate .g-text p, body.print-gate .g-tips, body.print-gate .g-sub { font-size: 12px; gap: 4px; }
  body.print-gate .g-num { width: 28px; height: 28px; font-size: 14px; }
  body.print-gate .g-note { font-size: 11px !important; padding: 6px 8px; }
}

.back-app { display: inline-block; margin-bottom: 14px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--text); font-weight: 700; text-decoration: none; }
.back-app[hidden] { display: none; }
