/* signaige.ai (Signaige) — one stylesheet, no framework, no JS. Light + dark via tokens. */
/* Brand: the "Signaige" wordmark = blue "Sign" + red "ai" (#e53935, the CMS header's red, the same in
   both themes) + blue "ge". Blues chosen for contrast: light #1b5fae (6.2:1 on --bg), dark #5aa2ff (7.2:1).
   #e53935 is 4.1:1 on the light background and 4.4:1 on the dark one, so the name is always set bold. */
:root {
  --bg: #fbfcfe;
  --bg-alt: #f1f5fb;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #4a5468;
  --line: #dde4ee;
  --brand-blue: #1b5fae;
  --brand-red: #e53935;
  --accent: #1b5fae;
  --accent-ink: #ffffff;
  --link: #1b5fae;
  --alert: #b3261e;
  --alert-bg: #fdecea;
  --todo-bg: #fff3c4;
  --todo-ink: #6b4a00;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 8px 24px rgba(27, 95, 174, .08);
  --radius: 14px;
  --maxw: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1220; --bg-alt: #131a2c; --surface: #172036; --ink: #e8edf5; --muted: #a7b2c4;
    --line: #26324a; --brand-blue: #5aa2ff; --accent: #5aa2ff; --accent-ink: #0b1220; --link: #7db6ff;
    --alert: #ff8a80; --alert-bg: #3a1716; --todo-bg: #4a3800; --todo-ink: #ffe08a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1220; --bg-alt: #131a2c; --surface: #172036; --ink: #e8edf5; --muted: #a7b2c4;
  --line: #26324a; --brand-blue: #5aa2ff; --accent: #5aa2ff; --accent-ink: #0b1220; --link: #7db6ff;
  --alert: #ff8a80; --alert-bg: #3a1716; --todo-bg: #4a3800; --todo-ink: #ffe08a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.012em; }
h1 { font-size: clamp(32px, 5.4vw, 52px); }
h2 { font-size: clamp(23px, 3vw, 30px); margin-top: 1.6em; }
h3 { font-size: 19px; margin-top: 1.2em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin: .25em 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink);
        padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the brand name: {{BRAND}} (site.config.json BRAND) = <span class="brand">Sign<span class="ai">ai</span>ge</span> */
.brand { color: var(--brand-blue); font-weight: 700; white-space: nowrap; }
.brand .ai { color: var(--brand-red); }
h1 .brand, h2 .brand, h3 .brand { font-weight: inherit; }
.wordmark { font-size: 27px; font-weight: 800; letter-spacing: -.015em; text-decoration: none; line-height: 1; }
.wordmark .brand { font-weight: 800; }
.wordmark.small { font-size: 21px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px;
       flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0;
         border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* sections */
.hero { padding: 56px 0 44px; background: var(--bg-alt); background:
          radial-gradient(1100px 380px at 85% -10%, color-mix(in srgb, var(--brand-blue) 14%, transparent), transparent 70%),
          var(--bg-alt);
        border-bottom: 1px solid var(--line); }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40em; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--brand-blue); margin-bottom: .6em; }
section.block { padding: 44px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.prose { max-width: 46em; }
.wrap.prose { max-width: var(--maxw); }
.wrap.prose > * { max-width: 46em; }
.muted { color: var(--muted); }
.mt0 { margin-top: 0; }
.section-lead { color: var(--muted); max-width: 44em; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none;
       border: 2px solid var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { color: var(--ink); background: transparent; }
.btn:hover { filter: brightness(1.07); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 18px; margin-top: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
             color: var(--accent); margin-bottom: 6px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px 22px;
            list-style: none; padding: 0; margin: 20px 0 0; }
.features li { margin: 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 10px 10px 0; }
.features b { display: block; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin: 16px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
                    background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.note { border: 1px solid var(--line); border-left: 4px solid var(--alert); border-radius: 10px; padding: 14px 16px; background: var(--surface); }
.note.strong { background: var(--alert-bg); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em;
              background: var(--bg-alt); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
dl.contact { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; }
dl.contact dt { font-weight: 700; }
dl.contact dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { dl.contact { grid-template-columns: 1fr; gap: 2px; } dl.contact dd { margin-bottom: 10px; } }
.todo { background: var(--todo-bg); color: var(--todo-ink); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.legal h2 { font-size: 21px; }
.legal .updated { color: var(--muted); }
table.plain { border-collapse: collapse; width: 100%; margin: 12px 0 18px; font-size: 16px; }
table.plain th, table.plain td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.plain th { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }

/* decorative screen illustration (aria-hidden) */
.screen { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(17, 24, 39, .18)); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); margin-top: 24px; }
.foot { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 24px 32px;
        padding-top: 32px; padding-bottom: 20px; font-size: 15px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot .brand-col { grid-column: 1 / -1; } }
.foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 4px 0; }
.foot p { margin: .5em 0 0; color: var(--muted); }
.foot .entity { color: var(--ink); font-weight: 600; }
.foot-base { border-top: 1px solid var(--line); padding-top: 14px; padding-bottom: 22px; font-size: 14px; color: var(--muted); }
