/* guide.css: the three guide pages (portal.html = app guide, web.html = website
   guide, usemeet.html = Google Meet guide). Built on css/italk-kit.css tokens;
   no hard-coded colours. Phone screenshots sit in a phone frame (.g-phone),
   desktop screenshots in a browser-window frame (.g-browser); both open in the
   lightbox (guide.js). */

/* ── Hero: inner layout of the shell's .hero.panel (text left, devices right) */
.g-hero { position: relative; max-width: 1200px; margin: 0 auto; padding: 64px 48px; display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .g-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 64px 56px; } }
@media (max-width: 900px) { .g-hero { padding: 48px 28px; } }
@media (max-width: 640px) { .g-hero { padding: 40px 20px 36px; gap: 28px; } }
.g-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.g-hero .h-page { color: var(--on-hero); }
.g-hero .lede { max-width: 540px; }
.g-hero .g-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.g-devices { display: flex; justify-content: center; align-items: flex-end; gap: 16px; min-width: 0; }
.g-devices .g-shot { flex: none; }
.g-devices .g-phone-shot { width: 180px; }
.g-devices .g-phone-shot + .g-phone-shot { margin-bottom: 28px; }
@media (min-width: 960px) { .g-devices .g-phone-shot { width: 210px; } }
@media (max-width: 420px) { .g-devices .g-phone-shot { width: calc(50% - 8px); } }
.g-devices .g-web-shot { width: 100%; max-width: 580px; }
.g-devices figcaption { display: none; }

/* Store badges (official artwork, so the brand marks keep their colours) */
.g-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.g-badge { display: inline-block; line-height: 0; border-radius: 8px; transition: transform .12s ease; }
.g-badge:hover { transform: translateY(-2px); }
.g-badge:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.g-badge svg { height: 44px; width: auto; display: block; }

/* ── Role switch + table of contents ────────────────────────────────────── */
.g-head { margin-bottom: 28px; }
.g-roles { width: 100%; max-width: 380px; }
.g-roles > button { border: 0; background: transparent; font: inherit; font-size: 14px; line-height: 18px; font-weight: 700; cursor: pointer; padding: 0 14px; color: var(--ink-2); }
.g-roles > button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.g-roles > button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.g-roles .ic { font-size: 18px; }

.g-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.g-body > * { min-width: 0; }
@media (min-width: 960px) { .g-body { grid-template-columns: 240px minmax(0, 1fr); } }
.g-toc { display: flex; gap: 8px; overflow-x: auto; margin: 0 -24px; padding: 2px 24px 8px; scrollbar-width: none; }
@media (max-width: 640px) { .g-toc { margin: 0 -16px; padding: 2px 16px 8px; } }
.g-toc::-webkit-scrollbar { display: none; }
.g-toc .h { display: none; }
.g-toc a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--surface); box-shadow: var(--shadow-card); font-size: 14px; line-height: 18px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; flex: none; }
.g-toc a .ic { font-size: 18px; }
.g-toc a:hover { color: var(--ink); }
.g-toc a.on { background: var(--amber-soft); color: var(--ink); }
@media (min-width: 960px) {
  .g-toc { position: sticky; top: 96px; flex-direction: column; gap: 2px; overflow: visible; margin: 0; padding: 0; }
  .g-toc .h { display: block; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--ink-2); padding: 0 12px 8px; }
  .g-toc a { height: auto; padding: 8px 12px; border-radius: 10px; background: transparent; box-shadow: none; white-space: normal; }
  .g-toc a:hover { background: var(--sunken); }
  .g-toc a.on { background: var(--amber-soft); }
}
.g-panel[hidden] { display: none !important; }

/* ── Steps ──────────────────────────────────────────────────────────────── */
.g-steps { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.g-step { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 96px; min-width: 0; }
@media (min-width: 768px) { .g-step { padding: 24px 28px; } }
.g-step-h { display: flex; align-items: center; gap: 12px; }
.g-step-h .ti { width: 40px; height: 40px; }
.g-step-h .g-n { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .6px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.g-step h3 { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 25px; font-weight: 800; letter-spacing: -0.3px; color: var(--ink); }
.g-step .badge { margin-left: auto; }
.g-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.g-list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 23px; color: var(--ink-2); }
.g-list li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 6px; height: 6px; border-radius: 2px; background: var(--amber); }
.g-list b, .g-step p b { color: var(--ink); font-weight: 700; }
.g-step p { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink-2); }
.g-step .link { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; white-space: normal; }
.g-step .link:hover { color: var(--ink); }
.g-step .banner { margin-top: 2px; }

/* ── Screenshots ────────────────────────────────────────────────────────── */
.g-shots { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.g-shots.web { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .g-shots.web.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-shot { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.g-shots:not(.web) .g-shot { width: 188px; }
@media (max-width: 480px) { .g-shots:not(.web) .g-shot { width: calc(50% - 8px); } }
.g-shot > button { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; border-radius: 30px; text-align: left; font: inherit; color: inherit; }
.g-shots.web .g-shot > button { border-radius: 14px; }
.g-shot > button:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.g-shot figcaption { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-2); text-align: center; }
.g-shot > button:hover .g-phone, .g-shot > button:hover .g-browser { transform: translateY(-2px); box-shadow: var(--shadow-float); }

/* Phone frame: --ink bezel, rounded screen */
.g-phone { display: block; background: var(--ink); border-radius: 30px; padding: 7px; box-shadow: var(--shadow-card), 0 10px 24px rgba(21, 19, 14, 0.12); transition: transform .14s ease, box-shadow .2s ease; position: relative; }
.g-phone img { display: block; width: 100%; height: auto; border-radius: 23px; background: var(--sunken); }
.g-devices .g-phone { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-float); }

/* Browser-window frame: top bar with three dots and the portal address */
.g-browser { display: block; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow-card), 0 10px 24px rgba(21, 19, 14, 0.08); transition: transform .14s ease, box-shadow .2s ease; }
.g-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.g-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.g-bar i:nth-child(1) { background: var(--danger); opacity: .7; }
.g-bar i:nth-child(2) { background: var(--amber); }
.g-bar i:nth-child(3) { background: var(--success); opacity: .7; }
.g-bar .g-url { margin-left: 8px; flex: 1; min-width: 0; max-width: 300px; height: 20px; border-radius: 6px; background: var(--surface); display: flex; align-items: center; gap: 4px; padding: 0 8px; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.g-bar .g-url .ic { font-size: 12px; color: var(--ink-3); }
.g-browser img { display: block; width: 100%; height: auto; background: var(--sunken); }

/* A screenshot that failed to load: neutral placeholder instead of a broken icon */
.g-shot.is-missing img { visibility: hidden; }
.g-shot.is-missing .g-phone::after, .g-shot.is-missing .g-browser::after { content: "image"; font-family: "Material Symbols Rounded"; font-size: 32px; color: var(--ink-3); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.g-shot.is-missing .g-browser { position: relative; }
.g-shot.is-missing > button { cursor: default; }

/* ── Lightbox ───────────────────────────────────────────────────────────── */
.g-lb { position: fixed; inset: 0; z-index: 200; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 12px 20px; background: rgba(21, 19, 14, 0.9); }
.g-lb.open { display: flex; }
.g-lb img { display: block; max-width: min(96vw, 1440px); max-height: calc(100vh - 130px); width: auto; height: auto; border-radius: 12px; box-shadow: var(--shadow-float); background: var(--surface); }
.g-lb.phone img { border-radius: 26px; }
.g-lb .g-lb-cap { color: var(--on-hero); font-size: 14px; line-height: 20px; font-weight: 600; text-align: center; max-width: 640px; }
.g-lb .g-lb-count { color: var(--on-hero-2); font-weight: 500; margin-left: 6px; }
.g-lb button { position: absolute; width: 44px; height: 44px; border-radius: var(--radius-pill); border: 0; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.12); color: var(--on-hero); cursor: pointer; }
.g-lb button:hover { background: rgba(255, 255, 255, 0.22); }
.g-lb button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.g-lb .g-lb-close { top: 10px; right: 10px; }
.g-lb .g-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.g-lb .g-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .g-lb .g-lb-prev, .g-lb .g-lb-next { top: auto; bottom: 14px; transform: none; } .g-lb { padding-bottom: 70px; } .g-lb img { max-height: calc(100vh - 160px); } }
body.g-lb-on { overflow: hidden; }

/* ── Help / contact band (dark .hero.panel) ───────────────────────────── */
.g-help { position: relative; display: grid; gap: 28px; align-items: center; padding: 44px 24px; }
@media (min-width: 860px) { .g-help { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: 56px 56px; } }
.g-help-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.g-help .h-card.lg { color: var(--on-hero); }
.g-help .g-contact { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.g-help .g-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--on-hero); font-weight: 600; }
.g-help .g-contact a:hover { color: var(--amber); }
.g-help .g-contact .ic { color: var(--amber); }
.g-help .g-ctas { display: flex; flex-direction: column; gap: 10px; }
.g-help .g-ctas .btn { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .g-phone, .g-browser, .g-badge { transition: none; }
}

/* ── usemeet.html (Google Meet guide) ───────────────────────────────────── */
.um-meet { width: 100%; max-width: 320px; padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.um-meet .h-card { color: var(--on-hero); }
.um-meet-logo { width: 96px; height: 96px; border-radius: 24px; background: var(--surface); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; box-shadow: var(--shadow-float); }
.um-meet .chip-dark { margin-top: 8px; }
.um-devices { max-width: 520px; }
@media (max-width: 480px) { .um-devices > button { padding: 0 8px; font-size: 13px; } .um-devices .ic { display: none; } }
.um-num { font-size: 15px; line-height: 20px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--on-tint-sage); }
.um-video { position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: var(--hero); }
.um-video.wide { aspect-ratio: 16 / 9; }
.um-video.tall { aspect-ratio: 9 / 16; max-width: 300px; margin: 0 auto; }
.um-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.um-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .um-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .um-grid .um-span { grid-column: 1 / -1; } }
.um-pair .banner b, .banner.um-plain b { color: var(--ink); }
.um-pair .banner .col, .banner.um-plain .col { gap: 2px; }
.banner.um-plain { background: var(--sunken); }
.banner.um-plain > .ic { color: var(--ink-2); }
.um-tips .kcard { gap: 10px; }
.um-faq { display: flex; flex-direction: column; gap: 12px; }
.um-faq details { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.um-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); }
.um-faq summary::-webkit-details-marker { display: none; }
.um-faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-card); }
.um-faq summary .ic { color: var(--accent-text); transition: transform .2s ease; }
.um-faq details[open] summary .ic { transform: rotate(180deg); }
.um-faq-a { padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; line-height: 23px; display: flex; flex-direction: column; gap: 8px; }
.um-faq-a ol, .um-faq-a ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.um-faq-a ol { list-style: decimal; }
.um-faq-a ul { list-style: disc; }

/* The role / device switch sits inside .sect-head.split, whose "> div" rule makes a vertical
   text column; the switch must stay one row of two (or three) buttons. */
.sect-head.split > .seg { flex-direction: row; gap: 4px; max-width: 420px; width: 100%; flex: none; align-self: flex-end; }
.sect-head.split > .seg > button { flex: 1; height: 40px; }
@media (max-width: 760px) { .sect-head.split > .seg { align-self: stretch; max-width: none; } }
