/**
 * @file        sg-pages.css
 * @description Public and sign-in pages after the Stitch mockups (P-01 landing, P-04/P-10 status pages, P-08 documents, P-09 contact, A-01 to A-07 cards, C-10 unverified banner); mobile first
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         0d8103a9-26c5-47f3-b997-54103a70a1ee
 * @version     0.1.0.1
 * @created     2026-12-02
 * @updated     2026-12-02
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* P-01 hero visual: trip card and scratch map card, stacked on phones, side by side from 600 px. */
.sg-pages-visual { display: grid; gap: 12px; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
@media (min-width: 600px) { .sg-pages-visual { grid-template-columns: 1fr 1fr; padding: 16px; gap: 16px; } }
.sg-pages-vcard { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.sg-pages-vcard__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.sg-pages-vcard__foot { margin: 0; color: var(--ink-muted); font-size: 0.85rem; }
.sg-pages-vcard .sg-hero-svg { max-width: 100%; }
.sg-pages-badge { display: inline-flex; padding: 2px 10px; border-radius: 999px; background: var(--navy); color: #F2F4F6; font: 500 0.8rem var(--font-mono); white-space: nowrap; }
.sg-pages-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-muted); font-size: 0.85rem; }
.sg-pages-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sg-pages-swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.sg-pages-swatch--visited { background: var(--mahogany); }
.sg-pages-swatch--new, .sg-pages-country--new { background: var(--orange); fill: var(--orange); }
.sg-pages-swatch--not_visited { background: var(--border); border: 1px solid var(--border-strong); }

/* P-01 sections: heading block, feature icon box, follower box and FAQ cards. */
.sg-pages-band { border-top: 1px solid var(--border); }
.sg-pages-head { margin-bottom: 24px; max-width: 72ch; }
.sg-pages-head h2 { margin-bottom: 4px; }
.sg-pages-head .sg-lead { margin: 0; }
.sg-pages-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.sg-pages-iconbox { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.sg-pages-follow-band { padding: 8px 0 40px; }
.sg-pages-follow { display: grid; gap: 16px; padding: 24px 16px; background: var(--beige); color: var(--warm-ink); border: 1px solid var(--border-warm); border-radius: var(--radius-lg); }
.sg-pages-follow h2 { color: inherit; }
.sg-pages-follow p { margin: 0; }
@media (min-width: 760px) { .sg-pages-follow { grid-template-columns: 7fr 5fr; align-items: center; padding: 32px; gap: 32px; } }
.sg-pages-follow__aside { display: grid; gap: 8px; }
.sg-pages-follow__demo { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; background: var(--surface); border: 1px solid var(--border-warm); border-radius: var(--radius); }
.sg-pages-follow__demo .sg-icon { flex: none; }
.sg-pages-chip { margin-left: auto; padding: 6px 12px; border-radius: var(--radius-sm); background: var(--mahogany); color: #EADDD3; font-size: 0.85rem; font-weight: 600; }
.sg-pages-follow__note { font-size: 0.9rem; }
.sg-pages-faq { display: grid; gap: 16px; }
@media (min-width: 760px) { .sg-pages-faq { grid-template-columns: 1fr 1fr; } }
.sg-pages-faqcard { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.sg-pages-faqcard h3 { margin: 0 0 8px; font-size: 1.05rem; }
.sg-pages-faqcard p { margin: 0; color: var(--ink-muted); }

/* A-02: "Forgot password?" on the label row of the password field. */
.sg-pages-labelrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.sg-pages-labelrow label { margin-bottom: 6px; }

/* Status cards (A-03, A-04, A-05, A-07, P-04, P-10): icon box, stacked full-width actions, footer link above a rule. */
.sg-pages-status__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 16px;
  border-radius: var(--radius); background: var(--beige); color: var(--warm-ink); border: 1px solid var(--border-warm); }
.sg-pages-status--success .sg-pages-status__icon { background: var(--navy); color: #F2F4F6; border-color: var(--navy); }
.sg-pages-status__logo { display: block; width: 64px; height: 64px; margin: 0 0 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.sg-pages-status__code { margin: 0 0 8px; }
.sg-pages-status__actions { display: grid; gap: 8px; }
.sg-pages-status__actions form { margin: 0; }
.sg-pages-status__actions .sg-button--block { margin-top: 0; }
.sg-pages-status__foot { padding-top: 16px; border-top: 1px solid var(--border); }
.sg-pages-status--center { text-align: center; }
.sg-pages-status--center .sg-pages-status__logo, .sg-pages-status--center .sg-pages-status__icon { margin-left: auto; margin-right: auto; }
.sg-pages-status--center .sg-pages-status__actions { justify-items: center; }

/* A-03: address and validity as a two-row box. */
.sg-pages-facts { margin: 0 0 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.sg-pages-facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; }
.sg-pages-facts div + div { border-top: 1px solid var(--border); }
.sg-pages-facts dt { color: var(--ink-muted); }
.sg-pages-facts dd { margin: 0; overflow-wrap: anywhere; }

/* P-09: subject chips (one column on phones, three from 480 px) and the "sent" box with the reference. */
.sg-pages-chipgrid { display: grid; gap: 8px; }
@media (min-width: 480px) { .sg-pages-chipgrid { grid-template-columns: repeat(3, 1fr); } }
.sg-field .sg-pages-chipradio { position: relative; display: block; margin: 0; font-weight: 400; }
.sg-pages-chipradio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sg-pages-chipradio span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; text-align: center;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.sg-pages-chipradio input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.sg-pages-chipradio input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.sg-pages-sent { display: grid; justify-items: center; gap: 8px; padding: 24px 16px; text-align: center; background: var(--beige); color: var(--warm-ink); border: 1px solid var(--border-warm); border-radius: var(--radius-lg); }
.sg-pages-sent .sg-pages-status__icon { margin: 0; }
.sg-pages-sent h2, .sg-pages-sent p { margin: 0; color: inherit; }
.sg-pages-sent__ref { padding: 6px 12px; background: var(--surface); border: 1px solid var(--border-warm); border-radius: var(--radius); overflow-wrap: anywhere; }

/* P-08: the document sits in a card with the "Last updated" line above the title. */
.sg-pages-doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 16px; width: calc(100% - 32px); max-width: calc(72ch + 64px); }
@media (min-width: 600px) { .sg-pages-doc { padding: 32px; } }
.sg-pages-doc__head .sg-code { margin: 0 0 4px; }

/* C-10: mail icon in front of the text, resend as a small outlined button in the warm banner. */
.sg-pages-banner__text { display: inline-flex; align-items: flex-start; gap: 8px; }
.sg-pages-banner__text .sg-icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.sg-banner .sg-pages-banner__button { color: var(--warm-ink); border-color: var(--border-warm); background: var(--surface); }
