/* StitchoMR brand layer (loaded last). Uses only variables from tokens.css; no colours are defined here except through them. */

/* --- navy bars: site-style header in both light and dark mode (variables are scoped in tokens.css) --- */
.page-bar, .ws-top { background: var(--bar-bg); color: var(--bar-text); border-bottom: 1px solid var(--bar-line); }
.page-bar { min-height: 56px; }
.page-bar .brand { color: var(--bar-text); padding: 4px 6px; gap: 10px; }
.brand-wordmark { display: block; height: 34px; width: auto; aspect-ratio: 3 / 1; }
.brand-sub { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-mint); padding-left: 10px; border-left: 1px solid var(--bar-line); line-height: 1.6; }
.brand-mark { display: block; width: 32px; height: 32px; border-radius: 7px; }
.brand-home { width: 38px; height: 38px; }
.page-bar .btn, .ws-top .btn { border-color: var(--border-strong); }
.page-bar .btn.primary, .ws-top .btn.primary { border-color: var(--accent); }
#acct-btn { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 20px; }
.brand-chip { display: inline-grid; flex: none; }
.brand-chip .brand-mark { width: 36px; height: 36px; }

/* --- type: Georgia for page titles like the site, Arial for everything else --- */
.hero h1, .wrap-main > h1, .acct h1, .card h2, .prj-section > h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em; }
.wrap-main > h1, .acct h1 { font-size: 28px; line-height: 1.2; margin: 6px 0 10px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.page a:not(.btn) { color: var(--accent); }

/* --- welcome page --- */
.hero { background: var(--brand-navy); color: var(--bar-text); border: 1px solid var(--bar-line); border-radius: var(--radius-lg); padding: 26px 32px 24px; margin: 0 0 14px; }
.hero .eyebrow { color: var(--brand-mint); }
.hero h1 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1; margin: 0 0 12px; }
.hero h1 em { font-style: normal; color: var(--brand-mint); }
.hero p { color: #b9cbcd; font-size: 16px; max-width: 680px; margin: 0; }
.pricebox { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; display: grid; gap: 12px; }
.pricebox p { margin: 0; }
.pricebox-lead { font-size: 15px; }
.price-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.price-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.price-steps .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.price-packs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; max-width: 700px; }
.price-pack { display: grid; gap: 1px; padding: 8px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.price-amt { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0 8px; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border-radius: var(--radius-lg); padding: 20px; height: 100%; transition: border-color .15s, box-shadow .15s; }
.card .badge { width: 44px; height: 44px; border-radius: var(--radius); background: var(--brand-navy); color: var(--brand-mint); margin-bottom: 4px; }
.card .card-kind { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.card h2 { font-size: 21px; line-height: 1.2; }
.card p { font-size: 13.5px; line-height: 1.5; flex: 1 1 auto; }
.card .btn { width: 100%; margin-top: 10px; }
button.card:hover { border-color: var(--accent); box-shadow: var(--shadow), 0 0 0 1px var(--accent); }
button.card:focus-visible { outline-offset: 3px; }
.prj-section { margin-top: 34px; }
.prj-section > h2 { font-size: 24px; }

/* --- My designs --- */
.prj-list { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.prj-item { border-radius: var(--radius-lg); }
.prj-thumb { flex: none; }
.prj-name { font-size: 15px; }
.prj-actions { display: flex; flex-wrap: nowrap; gap: 6px; }
.prj-actions .btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; }
.prj.compact .prj-actions { flex-wrap: wrap; }
.prj.compact .prj-actions .btn { flex: 1 1 auto; }
.chip-owner { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.prj-hint { color: var(--muted); font-size: 12px; }
.prj-note { max-width: 78ch; line-height: 1.5; }
.chip { font-weight: 500; }

/* --- boot / loading --- */
.boot { display: flex; flex-direction: column; height: 100%; }
.boot-body { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; }

/* --- responsive --- */
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .price-steps { grid-template-columns: 1fr; } .hero { padding: 24px 20px 22px; } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } .card { height: auto; } .prj-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 440px) { .prj-actions { flex-wrap: wrap; } .prj-actions .btn { flex: 1 1 40%; } .brand-sub { display: none; } }

/* stepper numbers sit on --surface-3: use full text colour so the digits keep AA contrast */
.stepper li .n { color: var(--text); } .stepper li.current .n { color: var(--accent-text); } .stepper li.done .n { color: var(--ok); }
