/* ==========================================================================
   HALO SUPPORT — SHARED BRAND STYLESHEET
   Served at https://support.huzihalo.com/brand.css  (file lives in public/)
   Version 1.1 — 2026-10-06

   THIS FILE IS THE SOURCE OF TRUTH for shared type, colour and components.
   Articles link it in &lt;head&gt; and keep only their own page-scoped rules
   (cp-, hh-, ld-, cn-, cy-, cm- ...) in an inline &lt;style&gt; AFTER this link.

   v1.1 change: icon tiles are the white lifted monochrome tile, matching
   .hp-ic on the homepage. .notice-ic and .mrel-ic were flat accent-tint
   chips and are now #fff / #ECECEF / lift shadow / #111 stroke. Pages that
   previously carried a HOUSE ICON TILE OVERRIDE block no longer need it.
   Do NOT revert these to a tinted fill.
   ========================================================================== */

/* ==========================================================================
   HALO SUPPORT — BRAND STYLESHEET  ·  brand.css  ·  v1.0 (2026-09-02)
   --------------------------------------------------------------------------
   One source of truth for type, color, and shared components on
   support.HuziHalo.com. Install ONCE in the shared layout so every article
   pulls from it; do not redefine these classes per page.

   Fonts: load this in the shared &lt;head&gt; ABOVE this stylesheet —
     &lt;link rel="preconnect" href="https://fonts.googleapis.com"&gt;
     &lt;link rel="preconnect" href="https://fonts.gstatic.com" crossorigin&gt;
     &lt;link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&amp;family=JetBrains+Mono:wght@400;500;600&amp;display=swap" rel="stylesheet"&gt;

   Design rules baked in:
     • Type: Inter for everything, JetBrains Mono for eyebrows/step numbers/tags.
       NO serif.
     • Color: warm marble neutrals + burgundy (#8B3A12) used like a signature —
       one word, one number, one line. NEVER a full background fill.
     • Cards/mocks are WHITE; the page is a warm off-white; browser mocks have
       no gray desk frame.
     • Callouts are the quiet .notice card. The old .ss-callout-tip/-orange
       classes are remapped here to degrade gracefully to the clean look.
     • Every class that reuses an older name (.ss-step-num, .ss-step-label…)
       FULLY resets the old properties so leftover rules can't bleed through.
   ========================================================================== */

/* ============================ TOKENS ============================ */
:root {
  /* Type */
  --font-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Courier New', monospace;

  /* Color — warm marble neutrals + one burgundy accent */
  --paper:       #F4F2EC;  /* page background (warm off-white) */
  --surface:     #FFFFFF;  /* cards, mocks */
  --panel:       #F5F3EE;  /* subtle inset / input fill */
  --ink:         #211E1A;  /* headings / primary */
  --ink-soft:    #57534E;  /* body text */
  --muted:       #8C867C;  /* captions, labels */
  --line:        #E9E4DB;  /* hairlines / borders */
  --line-soft:   #ECECEC;
  --accent:      #8B3A12;  /* Halo burgundy */
  --accent-deep: #6E2E0E;
  --accent-tint: #F4EAE0;  /* faint accent wash (icon chips only) */
  --good:        #2F7D53;  /* success mark (thin only) */
  --danger:      #B3401E;

  /* Legacy aliases kept so existing markup that references old var names
     still resolves to the new palette (do not remove) */
  --ha-bg:         #FFFFFF;
  --ha-card:       #FFFFFF;
  --ha-border:     #E9E4DB;
  --ha-brown:      #8B3A12;
  --ha-brown-lite: #F4EAE0;
  --ha-brown-text: #8B3A12;
  --ha-text:       #211E1A;
  --ha-muted:      #8C867C;
  --ha-input:      #F5F3EE;
  --s-cream:       #F4F2EC;
  --s-orange:      #8B3A12;
  --s-muted:       #8C867C;
  --s-border:      #E9E4DB;

  /* Radii + shadow */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(33,30,26,.04), 0 8px 22px rgba(33,30,26,.05);
  --shadow-md: 0 2px 6px rgba(33,30,26,.05), 0 16px 40px rgba(33,30,26,.07);
}

/* ============================ RESET + BASE ============================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-text);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }

/* ============================ HEADER ============================ */
.ss-header { background: #fff; border-bottom: 1px solid var(--line); padding: 0 24px; display: flex; align-items: center; gap: 16px; height: 54px; position: sticky; top: 0; z-index: 100; }
.ss-logo { font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.ss-logo .support { font-weight: 400; color: var(--muted); }
.ss-search { flex: 1; position: relative; max-width: 400px; }
.ss-search input { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px 7px 34px; color: var(--ink); font-family: inherit; font-size: 13px; }
.ss-search input::placeholder { color: #b3aca2; }
.ss-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #b3aca2; width: 14px; height: 14px; }
.ss-contact-link { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }

/* ============================ ARTICLE LAYOUT ============================ */
.ss-article { max-width: 1100px; margin: 0 auto; padding: 36px 32px 60px; }
.ss-breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ss-breadcrumb a { color: var(--muted); }
.ss-breadcrumb a:hover { color: var(--accent); }

/* H1 */
.ss-article-title { font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 18px; }

/* Answer block */
.ss-answer { background: #fff; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 20px 24px; margin-bottom: 22px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }
.ss-answer strong { color: var(--ink); font-weight: 600; }
.ss-answer code, .ss-body code { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); }

/* Primary CTA button */
.ss-cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; padding: 11px 22px; border-radius: var(--r-sm); margin-bottom: 28px; }
.ss-cta-btn:hover { background: var(--accent-deep); }

/* ============================ STEPS (editorial, fully reset) ============================ */
.ss-step-heading { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #a8a29e; margin: 52px 0 26px; }
.ss-step-block { margin-bottom: 54px; }
.ss-step-label { font-size: 21px; font-weight: 600; letter-spacing: -.02em; text-transform: none; color: #1a1a1a; margin-bottom: 18px; display: flex; align-items: baseline; gap: 15px; line-height: 1.3; }
/* RESET: kill any legacy filled-circle rule, render as a mono "01" */
.ss-step-num { background: none; width: auto; height: auto; min-width: 0; border-radius: 0; box-shadow: none; display: inline; font-family: var(--font-mono); color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .02em; flex-shrink: 0; position: relative; top: -1px; }
.ss-step-num::before { content: "0"; }

/* ============================ H2 + BODY ============================ */
.ss-h2 { font-size: 23px; font-weight: 600; color: #1a1a1a; letter-spacing: -.02em; margin: 60px 0 12px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.ss-body { font-size: 15px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 14px; }
.ss-body strong { color: var(--ink); font-weight: 600; }

/* ============================ NOTICE (the one callout) ============================ */
.notice { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 17px; margin: 20px 0; display: flex; gap: 13px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.notice-ic { width: 30px; height: 30px; border-radius: 10px; background: #fff; border: 1px solid #ECECEF; box-shadow: 0 1px 3px rgba(16,24,40,.05), 0 8px 18px rgba(16,24,40,.07); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.notice-ic svg { width: 15px; height: 15px; stroke: #111; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notice-body { flex: 1; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.notice-body .nt { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.notice-body b { color: var(--ink); font-weight: 600; }
.notice a { color: var(--accent); font-weight: 600; }

/* DEPRECATED callouts — remap to a quiet card so un-migrated markup degrades
   gracefully (no more green/peach fills). Prefer .notice for new work. */
.ss-callout { background: #fff; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 15px 18px; margin: 20px 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.ss-callout-tip, .ss-callout-orange, .ss-callout-warn { background: #fff; color: var(--ink-soft); border-left-color: var(--accent); }
.ss-callout strong, .ss-callout-tip strong, .ss-callout-orange strong, .ss-callout-warn strong { color: var(--ink); display: block; margin-bottom: 2px; font-weight: 600; }

/* ============================ RELATED BOXES ============================ */
.ss-related { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 52px; }
.ss-related-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mrel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mrel-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.mrel-item:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(139,58,18,.07); }
.mrel-ic { width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 1px solid #ECECEF; box-shadow: 0 1px 3px rgba(16,24,40,.05), 0 8px 18px rgba(16,24,40,.07); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mrel-ic svg { width: 17px; height: 17px; stroke: #111; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mrel-tx { flex: 1; min-width: 0; }
.mrel-tx .t { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.mrel-tx .s { font-size: 11.5px; color: var(--muted); }
.mrel-go { color: #c9c9cf; font-weight: 700; flex-shrink: 0; }
.mrel-item:hover .mrel-go { color: var(--accent); }
/* Legacy related list — degrade cleanly if a page still uses it */
.ss-related-list { list-style: none; }
.ss-related-list li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.ss-related-list li a { color: var(--accent); font-weight: 600; }

/* ============================ SUPPORT CTA + FOOTER ============================ */
.ss-support-cta { background: #1a1a1a; border-radius: var(--r-sm); padding: 20px 24px; margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ss-support-cta-text strong { display: block; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.ss-support-cta-text span { font-size: 12px; color: #a8a29e; }
.ss-support-btn { background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 20px; border-radius: 6px; white-space: nowrap; border: none; flex-shrink: 0; }
.ss-support-btn:hover { background: var(--accent-deep); }
.ss-footer { background: #1a1a1a; border-top: 1px solid #262320; padding: 24px; text-align: center; }
.ss-footer p { font-size: 12px; color: rgba(255,255,255,.35); }
.ss-footer a { color: var(--accent); }

/* ============================ ILLUSTRATIONS + BROWSER CHROME ============================ */
.illo-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(33,30,26,.03), 0 10px 30px rgba(33,30,26,.05); }
.illo-caption { background: #fff; border-top: 1px solid var(--line); padding: 12px 16px 14px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
.illo-caption strong { color: var(--ink); font-weight: 700; }

/* Browser mock — no gray desk frame; the window fills the card */
.ha-browser-outer { background: #fff; padding: 0; }
.ha-browser-win { background: #fff; border-radius: 0; overflow: hidden; box-shadow: none; }
.ha-browser-bar { background: #F0EDE7; border-bottom: 1px solid var(--line); padding: 9px 12px; display: flex; align-items: center; gap: 8px; }
.ha-browser-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.ha-browser-url-pill { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-size: 11px; color: var(--muted); text-align: center; max-width: 300px; margin: 0 auto; }

/* Halo app canvas (white now) */
.ha-app, .ha-page { background: #fff; padding: 16px 20px 20px; }
.ha-page-tight { background: #fff; padding: 12px 14px; }

/* ============================ NAV PILL (real logo) ============================ */
.ha-nav-row { display: flex; justify-content: center; margin-bottom: 16px; }
.ha-nav-pill { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 6px 14px; gap: 7px; box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.ha-nav-globe { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ha-nav-globe img { width: 17px; height: 17px; display: block; }
.ha-nav-brand { font-size: 13px; font-weight: 700; color: var(--ink); margin-right: 4px; }
.ha-nav-div { width: 1px; height: 16px; background: var(--line); margin: 0 3px; }
.ha-nav-ic { width: 15px; height: 15px; color: #b3b3ba; stroke: currentColor; fill: none; stroke-width: 1.6; }
/* Standard nav emblem set = Home · Clock · Moon · Chat (real Halo lotus in .ha-nav-globe img). */

/* ============================ VIDEO ============================ */
.ss-video { margin: 8px 0 28px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.ss-video video { display: block; width: 100%; }
.ss-video-cap { padding: 11px 16px 13px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }

/* ============================ CONCEPT GRAPHIC (monochrome, reusable) ============================ */
.gfx-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 28px 22px; margin: 24px 0 30px; box-shadow: 0 1px 3px rgba(16,24,40,.04), 0 12px 30px rgba(16,24,40,.05); }
.cf-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.cf-eyebrow b { color: var(--ink); font-weight: 800; }
.cf-eyebrow span { color: #a8a29e; }
.cf-flow { display: flex; align-items: flex-start; justify-content: center; }
.cf-step { display: flex; flex-direction: column; align-items: center; text-align: center; width: 128px; flex: 0 0 auto; }
.cf-tile { width: 60px; height: 60px; border-radius: 16px; background: #fff; border: 1px solid #ECECEF; box-shadow: 0 1px 3px rgba(16,24,40,.05), 0 10px 22px rgba(16,24,40,.07); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.cf-tile svg { width: 27px; height: 27px; stroke: #111; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cf-name { font-size: 13px; font-weight: 700; color: #111; }
.cf-note { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.cf-dots { flex: 0 0 36px; height: 2px; margin-top: 29px; background-image: linear-gradient(to right, #D9D9E0 50%, transparent 0); background-size: 8px 2px; background-repeat: repeat-x; }

/* ============================ MODAL PRIMITIVES ============================ */
.ha-modal-backdrop { background: #fff; padding: 16px; }
.ha-modal { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-md); max-width: 400px; margin: 0 auto; }
.ha-modal-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ha-modal-ttl { font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.ha-modal-x { font-size: 16px; color: var(--muted); }
.ha-modal-input { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 13px; color: var(--ink); font-family: inherit; }
.ha-modal-save, .ha-modal-action-btn { background: var(--accent); color: #fff; border-radius: 7px; font-weight: 600; }

/* ============================ HIGHLIGHT UTILITY ============================ */
/* The ONE way to mark a click target: single ring + soft halo. Max 2 per illo. */
.ha-hi { box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px rgba(139,58,18,.18); }

/* Annotation tag (burgundy pointer pill) */
.ha-anno { position: relative; }
.ha-tag { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 5px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 500; padding: 4px 9px; border-radius: 20px; white-space: nowrap; box-shadow: 0 5px 14px rgba(139,58,18,.30); }
.ha-tag::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
.ha-tag.up { bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%); }
.ha-tag.up::after { top: calc(100% - 4px); left: 50%; margin-left: -4px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  .cf-flow { flex-wrap: wrap; gap: 14px; justify-content: flex-start; }
  .cf-dots { display: none; }
}
@media (max-width: 640px) {
  .ss-article { padding: 24px 16px 48px; }
  .ss-header { padding: 0 16px; }
  .ss-search { display: none; }
  .ss-support-cta { flex-direction: column; align-items: flex-start; }
  .mrel { grid-template-columns: 1fr; }
}

