/* gcontrol.ai – brand v0.2 tokens (app/demo/webapp/css/brand.css). Royal #0033CC, navy #0B2380; orange appears only
   in the logo graphic. Montserrat lives only inside the logo files; text uses the system sans-serif. */
:root {
  --royal: #0033CC;          /* brand-royal, 8.95:1 on white */
  --royal-hover: #0029A3;
  --navy: #0B2380;           /* brand-navy */
  --ink: #1B2333;
  --muted: #4A5568;          /* 7.4:1 on white */
  --line: #DDE3EE;
  --tint: #F4F6FB;
  --tint-royal: #E8EDFF;     /* chip-sandbox-bg */
  --white: #FFFFFF;
  --radius: 12px;
  --max: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-underline-offset: 2px; }
a:hover { color: var(--royal-hover); }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 4.2vw + 1rem, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4rem 0; }
section.alt { background: var(--tint); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }
.narrow { max-width: 46rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand img { width: 15rem; max-width: 52vw; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a.text { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a.text:hover { color: var(--royal); }
@media (max-width: 46rem) { .site-nav a.text { display: none; } }

/* Buttons */
.btn { display: inline-block; padding: .7rem 1.25rem; border-radius: 9999px; font-weight: 600; text-decoration: none; border: 2px solid var(--royal); line-height: 1.2; }
.btn-primary { background: var(--royal); color: var(--white); }
.btn-primary:hover { background: var(--royal-hover); border-color: var(--royal-hover); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--royal); }
.btn-secondary:hover { background: var(--tint-royal); }
.btn[aria-disabled="true"] { background: var(--tint); border-color: var(--line); color: var(--muted); cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Hero */
.hero { padding: 5rem 0 4rem; background: linear-gradient(180deg, var(--tint-royal) 0%, var(--white) 100%); }
.eyebrow { font-weight: 600; color: var(--royal); text-transform: none; margin-bottom: .75rem; }

/* How it works */
.how-visual { margin-top: 2rem; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }

/* Cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 2rem; }
.card { border: 1px solid var(--line); border-left: 4px solid var(--royal); border-radius: var(--radius); padding: 1.5rem; background: var(--white); }
.card p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }

/* Privacy page */
.doc { padding: 3.5rem 0; }
.doc h2 { margin-top: 2rem; font-size: 1.35rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
