/* Glance Web Design System component styles (from the system's components/bundle.css). Colors, type, spacing, radii and shadows
   come from tokens.css; the one gradient has no token family, so it lives here. */
:root {
  --gw-gradient-bright: linear-gradient(90deg, #019ada 0%, #03c99b 100%);
  --gw-speed: .2s;
}

/* Display sizes scale with the viewport, between the mockups' smallest and largest sizes. */
.gw-display-2xl { font-size: clamp(2.625rem, 5.4vw, 4.25rem); }
.gw-display-xl { font-size: clamp(2.125rem, 4.2vw, 3.375rem); }
.gw-display-lg { font-size: clamp(2.125rem, 3.8vw, 3rem); }
.gw-display-md { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.gw-display-sm { font-size: clamp(1.875rem, 3.2vw, 2.5rem); }
.gw-display-xs { font-size: 1.5rem; }

body { margin: 0; font-family: var(--font-body); line-height: 1.55; color: var(--text); background: var(--surface); -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:where(.gw-root) a:focus-visible, :where(.gw-root) button:focus-visible, .gw-btn:focus-visible, .gw-search input:focus-visible {
  outline: 3px solid var(--focus-ring); outline-offset: 2px;
}

/* Button: navy pill, white label. Secondary is a navy outline. On navy sections the
   action token turns white, so the same classes give a white pill and a white outline. */
.gw-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); border: 0; border-radius: var(--radius-xl); padding: 15px 28px; font-family: var(--font-body); font-size: 1rem; font-weight: 500; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: background var(--gw-speed) ease-in-out, color var(--gw-speed) ease-in-out, border-color var(--gw-speed) ease-in-out; white-space: nowrap; }
.gw-btn-sm { font-size: .9375rem; padding: 12px 22px; }
.gw-btn-lg { font-size: 1.0625rem; padding: 16px 30px; }
.gw-btn-primary { background: var(--action); color: var(--on-action); }
.gw-btn-primary:hover { background: var(--action-hover); color: var(--on-action); }
.gw-btn-secondary, .gw-btn-outline { background: transparent; color: var(--action); border: 1.5px solid var(--action); padding: 13.5px 26.5px; }
.gw-btn-secondary.gw-btn-sm, .gw-btn-outline.gw-btn-sm { padding: 10.5px 20.5px; }
.gw-btn-secondary.gw-btn-lg, .gw-btn-outline.gw-btn-lg { padding: 14.5px 28.5px; }
.gw-btn-secondary:hover, .gw-btn-outline:hover { background: var(--surface-tint); color: var(--action); }
.gw-btn-neutral { background: var(--white); color: var(--ink); border: 1px solid var(--hairline); padding: 14px 27px; }
.gw-btn-neutral:hover { border-color: var(--blue-grey); color: var(--ink); }
.gw-btn-text { background: transparent; padding: 0; color: var(--link); font-weight: 700; }
.gw-btn-text:hover { color: var(--link-hover); background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.gw-btn-plain { background: transparent; color: var(--text-muted); padding: 10px 6px; font-size: .9375rem; font-weight: 400; }
.gw-btn-plain:hover { color: var(--heading); }
/* The gradient band keeps the navy pill; the secondary becomes a white pill with a navy label. */
.gw-section-gradient .gw-btn-secondary, .gw-section-gradient .gw-btn-outline { background: var(--white); color: var(--navy); border-color: var(--white); }
.gw-section-gradient .gw-btn-secondary:hover, .gw-section-gradient .gw-btn-outline:hover { background: var(--light-blue); border-color: var(--light-blue); color: var(--navy); }

/* Chips */
.gw-chip { display: inline-flex; align-items: center; gap: var(--space-8); padding: 8px 14px; border-radius: var(--radius-xl); background: var(--white); color: var(--blue-grey); border: 1px solid var(--neutral-blue); font-size: .8125rem; line-height: 1.2; }
.gw-chip-new { padding: 6px 14px 6px 6px; background: var(--light-blue); color: var(--navy); border: 0; font-size: .875rem; font-weight: 500; text-decoration: none; }
.gw-chip-new b { background: var(--navy); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: .6875rem; letter-spacing: .08em; padding: 5px 10px; border-radius: var(--radius-xl); }
.gw-chip-live { background: var(--focus-green); color: var(--navy); border: 0; font-weight: 700; }

/* Eyebrow and headings */
.gw-eyebrow { display: block; margin: 0 0 var(--space-16); font-family: var(--font-display); font-size: .875rem; font-weight: 700; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; color: var(--eyebrow); }
.gw-eyebrow-green { color: var(--pillar-green); } .gw-eyebrow-blue { color: var(--pillar-blue); }
.gw-eyebrow-violet { color: var(--pillar-violet); } .gw-eyebrow-orange { color: var(--pillar-orange); }
.gw-heading { margin: 0 0 var(--space-16); font-family: var(--font-display); font-weight: 400; line-height: 1; color: var(--heading); text-wrap: balance; }
.gw-subheading { margin: 0 0 var(--space-32); font-size: 1.125rem; line-height: 1.55; font-weight: 400; color: var(--text-muted); max-width: 47.5rem; }
.gw-section-heading { display: flex; flex-direction: column; align-items: flex-start; max-width: 48.75rem; }
.gw-section-heading:not(:last-child) { margin-bottom: var(--space-48); }
.gw-section-heading.is-center { align-items: center; text-align: center; margin-inline: auto; }
.gw-section-heading > :last-child { margin-bottom: 0; }

/* Section and container */
.gw-section { background: var(--surface); color: var(--text); padding-block: var(--space-96); }
.gw-section-gray { background: var(--surface-subtle); }
.gw-section-navy, .gw-section-dark { background: var(--navy); }
.gw-section-blue-grey { background: var(--blue-grey); }
/* Gradient band: navy headline and ink copy (white fails on the green end), navy focus ring. */
.gw-section-gradient { background: var(--gw-gradient-bright); color: var(--ink); --focus-ring: var(--navy); }
.gw-section-gradient .gw-heading, .gw-section-gradient .gw-eyebrow { color: var(--navy); }
.gw-section-gradient .gw-subheading { color: var(--ink); }
.gw-section-blue-grey .gw-eyebrow { color: var(--white); }
.gw-section-gradient .gw-btn-primary { background: var(--navy); color: var(--white); }
.gw-section-gradient .gw-btn-primary:hover { background: var(--navy-hover); }
.gw-container { max-width: var(--container-max); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 48rem) { .gw-container { padding-inline: var(--space-24); } }

/* Hero: white ground, navy headline, product visual on a light-blue panel */
.gw-hero { padding-block: var(--space-72) var(--space-96); background: var(--surface); }
.gw-hero-grid { display: grid; gap: var(--space-56); align-items: center; }
@media (min-width: 64rem) { .gw-hero-grid.has-media { grid-template-columns: 1fr 1fr; } }
.gw-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-24); }
.gw-hero-copy > * { margin: 0; }
.gw-hero-body { font-size: 1.25rem; line-height: 1.5; color: var(--text-muted); max-width: 35rem; }
.gw-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.gw-hero-copy .gw-hero-actions { padding-top: var(--space-12); }
.gw-hero-note { font-size: .875rem; color: var(--text-faint); }
.gw-hero-media { background: var(--surface-tint); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: var(--space-16); min-width: 0; }
.gw-hero-media > img, .gw-hero-media .gw-media-frame { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--navy-shadow-lg); }

/* Cards */
.gw-card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gw-card h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.3; color: var(--heading); }
.gw-card p { margin: 0; line-height: 1.55; color: var(--text-muted); }
.gw-card-tint { background: var(--surface-tint); border-color: transparent; }
.gw-badge { width: 44px; height: 44px; border-radius: var(--radius-badge); display: inline-flex; align-items: center; justify-content: center; background: var(--focus-blue); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.gw-badge-green { background: var(--green-600); } .gw-badge-purple { background: var(--focus-purple); }

/* Card deck: callouts on navy */
.gw-deck { display: grid; gap: var(--space-24); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr)); }
.gw-deck-card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-callout); padding: var(--space-24); display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
.gw-deck-card img { width: 2.5rem; height: 2.5rem; }
.gw-deck-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; font-weight: 500; color: var(--heading); }
.gw-deck-card p { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--text-soft); }

/* Switchback */
.gw-switchback { display: grid; gap: var(--space-32); align-items: center; }
@media (min-width: 64rem) { .gw-switchback { grid-template-columns: 1fr 1fr; gap: var(--space-56); } .gw-switchback.is-reversed .gw-switchback-media { order: 2; } }
.gw-switchback-media { border-radius: var(--radius-lg); overflow: hidden; }
.gw-switchback-media img { display: block; width: 100%; height: auto; }
.gw-switchback-text { min-width: 0; }
.gw-switchback-text p { margin: 0 0 var(--space-24); font-size: 1.125rem; line-height: 1.55; color: var(--text-muted); }

/* Resource card */
.gw-resource { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; color: var(--text); text-decoration: none; min-width: 0; }
.gw-resource-img { aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; }
.gw-resource-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gw-resource-body { padding: 28px; display: flex; flex-direction: column; gap: var(--space-12); flex: 1; }
.gw-resource-body .gw-eyebrow { margin: 0; }
.gw-resource-title { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; font-weight: 500; color: var(--heading); }
.gw-resource-meta { margin: 0; line-height: 1.55; color: var(--text-muted); }
.gw-resource:hover .gw-resource-title { text-decoration: underline; text-underline-offset: 4px; }

/* CTA band: the page's one gradient, white type, navy pill */
.gw-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.gw-panel > * { margin: 0; }
.gw-panel .gw-heading { max-width: 47.5rem; }
.gw-panel .gw-subheading { max-width: 47.5rem; }
.gw-panel .gw-hero-actions { padding-top: var(--space-12); }

/* Search field */
.gw-search { display: flex; align-items: center; gap: var(--space-8); border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--white); padding: 0 var(--space-12); max-width: 28rem; }
.gw-search:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.gw-search svg { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: var(--blue-grey); stroke-width: 2; }
.gw-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 13px 2px; font: inherit; font-size: .9375rem; line-height: 1.4; color: var(--ink); outline: none; }
.gw-search input::placeholder { color: var(--blue-grey); }

/* Switch: a checkbox with role="switch". Default 44x24; small 32x18 for dense settings lists.
   Off is gray-500 and on is primary-700, so both keep 3:1 against white and against the white knob. */
.gw-switch { appearance: none; flex: none; position: relative; width: 2.75rem; height: 1.5rem; margin: 0; border-radius: var(--radius-xl); background: var(--gray-500); cursor: pointer; transition: background var(--gw-speed) ease-in-out; }
.gw-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1.125rem; height: 1.125rem; border-radius: var(--radius-round); background: var(--white); box-shadow: var(--gray-shadow-sm); transition: transform var(--gw-speed) ease-in-out; }
.gw-switch:checked { background: var(--primary-700); }
.gw-switch:checked::after { transform: translateX(1.25rem); }
.gw-switch:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.gw-switch:disabled { opacity: .55; cursor: not-allowed; }
.gw-switch-sm { width: 2rem; height: 1.125rem; }
.gw-switch-sm::after { top: 2px; left: 2px; width: .875rem; height: .875rem; }
.gw-switch-sm:checked::after { transform: translateX(.875rem); }
[data-theme="dark"] .gw-switch { background: rgba(255, 255, 255, .3); }
[data-theme="dark"] .gw-switch:checked { background: var(--focus-blue); }
.gw-switch-field { display: inline-flex; align-items: flex-start; gap: var(--space-12); cursor: pointer; }
.gw-switch-field .gw-switch { margin-top: 1px; }
.gw-switch-field .gw-switch-sm { margin-top: 3px; }
.gw-switch-text { display: grid; gap: 2px; }
.gw-switch-label { font-weight: 500; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.gw-switch-desc { font-size: .875rem; line-height: 1.5; color: var(--text-soft); }
[data-theme="dark"] .gw-switch-label { color: var(--text); }
.gw-switch-field:has(.gw-switch:disabled) { cursor: not-allowed; }
.gw-switch-field:has(.gw-switch:disabled) .gw-switch-label { opacity: .55; }

/* Site header: white, hairline border */
.gw-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.gw-header-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-block: var(--space-16); }
.gw-header-logo img { display: block; height: 2rem; width: auto; }
.gw-header-nav { display: flex; gap: var(--space-24); flex-wrap: wrap; flex: 1 1 22.5rem; }
.gw-header-nav a { font-size: .9375rem; line-height: 1.5; font-weight: 500; color: var(--text); text-decoration: none; }
.gw-header-nav a:hover, .gw-header-nav a[aria-current="page"] { color: var(--heading); font-weight: 700; }
.gw-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); margin-left: auto; }
@media (max-width: 63.99rem) { .gw-header-nav, .gw-header-actions .gw-btn-plain { display: none; } }

/* Site footer: navy, white logo */
.gw-footer { background: var(--navy); color: var(--light-blue); padding-block: var(--space-48); }
@media (min-width: 64rem) { .gw-footer { padding-block: var(--space-72); } }
.gw-footer-grid { display: grid; gap: var(--space-40); }
@media (min-width: 64rem) { .gw-footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.gw-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-16); }
.gw-footer-brand img { height: 2rem; width: auto; }
.gw-footer-tagline { margin: 0; font-size: .875rem; line-height: 1.43; color: var(--text-soft); }
.gw-footer-col { display: flex; flex-direction: column; gap: var(--space-12); }
.gw-footer-col .gw-eyebrow { margin: 0; }
.gw-footer-col a, .gw-footer-legal a { font-size: .875rem; line-height: 1.5; color: var(--light-blue); text-decoration: none; }
.gw-footer-col a:hover, .gw-footer-legal a:hover { color: var(--white); text-decoration: underline; }
.gw-footer-legal { margin-top: var(--space-48); padding-top: var(--space-24); border-top: 1px solid rgba(255, 255, 255, .16); display: flex; flex-wrap: wrap; gap: 22px; font-size: .75rem; color: var(--neutral-blue); }
.gw-footer-legal a { font-size: .75rem; }

@media (prefers-reduced-motion: reduce) { .gw-btn, .gw-switch, .gw-switch::after { transition: none; } }
