/* enterprise.garagerag.app: page layout on the Enterprise tokens (brand/tokens.css) and the design
   system's components (components.css, copied from docs/design-system/components/bundle.css). No
   data-theme on <html>: tokens.css follows the system's light or dark setting. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 16px/1.6 var(--font-sans); background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--violet-700); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 var(--space-4); }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 650; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; }
h3 { font-size: 18.4px; font-weight: 600; }
p { margin: 0 0 var(--space-4); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 600px) { .wrap { padding: 0 var(--space-4); } }

.skip { position: absolute; left: -9999px; top: var(--space-2); background: var(--violet-500); color: var(--on-brand); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); z-index: 20; }
.skip:focus { left: var(--space-4); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: var(--space-6); min-height: 64px; }
.header-row .g-wordmark { text-decoration: none; }
.site-nav { display: flex; gap: var(--space-5); margin-left: auto; }
.site-nav a { color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--violet-700); }
@media (max-width: 860px) { .site-nav { display: none; } .header-cta { margin-left: auto; } }
@media (max-width: 420px) { .header-cta { padding: 8px 12px; font-size: 14px; } .header-row .g-wordmark { --g-mark: 28px !important; } }

/* Hero */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line-subtle); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-10); align-items: center; }
.hero .eyebrow { margin-bottom: var(--space-5); }
.lede { font-size: 19px; color: var(--ink-muted); max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-mark img { width: 200px; height: 200px; filter: drop-shadow(var(--shadow-icon)); }
@media (max-width: 760px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .actions .g-btn { width: 100%; }
}

/* Sections */
section { padding: 80px 0; }
@media (max-width: 600px) { section { padding: 56px 0; } }
section[id] { scroll-margin-top: 72px; }
.band { background: var(--surface-raised); border-top: 1px solid var(--line-subtle); border-bottom: 1px solid var(--line-subtle); }
.section-eyebrow { font: 600 12.8px/1.4 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--violet-700); margin-bottom: var(--space-3); }
.section-lede { font-size: 18px; color: var(--ink-muted); max-width: 720px; margin-bottom: var(--space-10); }

.grid { display: grid; gap: var(--space-5); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-10); }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid.two { grid-template-columns: 1fr; } }
.band .g-card { background: var(--surface); }

.checks { list-style: none; margin: var(--space-5) 0 0; padding: var(--space-5) 0 0; border-top: 1px solid var(--line-subtle); display: grid; gap: var(--space-3); font-size: 14.8px; line-height: 1.5; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 8px; border-left: 2px solid var(--violet-500); border-bottom: 2px solid var(--violet-500); transform: rotate(-45deg); }

/* How it works */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); counter-reset: none; }
.flow-step { position: relative; padding: var(--space-6); border: 1px solid var(--violet-300); border-radius: var(--radius-lg); background: var(--violet-050); }
.flow-step p { color: var(--ink-muted); font-size: 15px; margin: 0; }
.flow-num { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: var(--space-4); border-radius: var(--radius-pill); background: var(--violet-500); color: var(--on-brand); font-weight: 600; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -16px; width: 12px; height: 12px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { top: auto; bottom: -15px; right: 50%; transform: translateX(50%) rotate(135deg); }
}

/* Administrators */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-10); align-items: center; }
.admin-grid > div p { color: var(--ink-muted); }
.admin-grid > div strong { color: var(--ink); }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.demo { margin: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lift); background: var(--surface); }
.demo .g-viewas { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.demo-body { padding: var(--space-4); display: grid; gap: var(--space-3); background: var(--surface); }
.demo-search { padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink); font-size: 15px; }
.demo-hit { display: grid; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); }
.demo-hit-title { font-weight: 600; color: var(--violet-700); }
.demo-hit-meta { font-size: 13.6px; color: var(--ink-faint); }
.demo figcaption { padding: var(--space-3) var(--space-4); font-size: 13.6px; color: var(--ink-faint); background: var(--surface-raised); border-top: 1px solid var(--line-subtle); }
@media (max-width: 420px) { .g-viewas { flex-wrap: wrap; } }

/* Status */
.g-callout p { margin: 0; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); margin-top: var(--space-10); padding: var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.cta-band h3 { margin-bottom: var(--space-2); font-size: 22px; }
.cta-band p { margin: 0; color: var(--ink-muted); }

/* Footer */
.site-footer { padding: var(--space-8) 0; border-top: 1px solid var(--line); background: var(--surface-raised); color: var(--ink-faint); font-size: 14.4px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); }
.footer-row nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer-row a { color: var(--ink-muted); text-decoration: none; }
.footer-row a:hover { color: var(--violet-700); }

/* 404 */
.notfound { padding: 120px 0; text-align: center; }
.notfound p { color: var(--ink-muted); }
