/* ==========================================================================
   SRISHTI GENAI — DESIGN SYSTEM
   Tokens and shared components from the UI & CSS developer handoff
   (srishti-genai-design-system.css), mapped onto this site's class names.

   Loaded last in <head> on every page, after styles.min.css and the
   page-specific sheets, so these rules settle every shared component without
   !important. The logo asset is never styled here.
   ========================================================================== */

:root {
    /* Colour */
    --sg-color-bg: #ffffff;
    --sg-color-surface: #f7f7f5;
    --sg-color-surface-2: #f0f0ee;
    --sg-color-text: #171717;
    --sg-color-text-secondary: #626262;
    --sg-color-text-muted: #737373;
    --sg-color-border: #e5e5e5;
    --sg-color-border-strong: #cfcfcf;
    --sg-color-primary: #171717;
    --sg-color-primary-hover: #303030;
    --sg-color-primary-text: #ffffff;
    --sg-color-accent: #171717;
    --sg-color-selection: #e5e5e5;
    /* Semantic colours stay chromatic: they carry state, not decoration. */
    --sg-color-success: #18794e;
    --sg-color-success-bg: #ecfdf3;
    --sg-color-success-border: #b7e4c7;
    --sg-color-warning: #946200;
    --sg-color-warning-bg: #fffaeb;
    --sg-color-error: #b42318;
    --sg-color-error-bg: #fef3f2;
    --sg-color-error-border: #fecaca;

    /* Typography */
    --sg-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sg-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sg-text-xs: 0.75rem;
    --sg-text-sm: 0.875rem;
    --sg-text-base: 1rem;
    --sg-text-lg: 1.125rem;
    --sg-leading-body: 1.65;
    --sg-leading-heading: 1.12;
    --sg-h1: clamp(2.5rem, 5vw, 4.5rem);
    --sg-h2: clamp(2rem, 3.6vw, 3.1rem);
    --sg-h3: clamp(1.25rem, 2vw, 1.55rem);
    --sg-h4: 1.125rem;
    --sg-weight-heading: 620;
    --sg-weight-strong: 650;
    --sg-weight-button: 600;

    /* Layout */
    --sg-container: 1200px;
    --sg-container-wide: 1320px;
    --sg-reading-width: 740px;
    --sg-gutter: 24px;

    /* Spacing scale */
    --sg-space-1: 4px;
    --sg-space-2: 8px;
    --sg-space-3: 12px;
    --sg-space-4: 16px;
    --sg-space-5: 20px;
    --sg-space-6: 24px;
    --sg-space-8: 32px;
    --sg-space-10: 40px;
    --sg-space-12: 48px;
    --sg-space-16: 64px;
    --sg-space-20: 80px;
    --sg-space-24: 96px;
    --sg-section-y: clamp(52px, 7vw, 104px);
    --sg-card-padding: clamp(22px, 2.5vw, 32px);

    /* Shape and elevation */
    --sg-radius-sm: 6px;
    --sg-radius-control: 8px;
    --sg-radius-card: 14px;
    --sg-radius-panel: 20px;
    --sg-radius-pill: 999px;
    --sg-shadow-subtle: 0 4px 16px rgb(0 0 0 / 0.04);
    --sg-shadow-popover: 0 12px 36px rgb(0 0 0 / 0.12);
    --sg-focus-ring: 0 0 0 3px rgb(23 23 23 / 0.15);

    /* Motion */
    --sg-motion-fast: 140ms;
    --sg-motion-normal: 180ms;
    --sg-ease: ease;

    /* styles.css layout tokens, re-pointed at the container and gutter. */
    --section-padding-x: var(--sg-gutter);
    --content-max-width: calc(var(--sg-container) + 2 * var(--sg-gutter));
    --font-sans: var(--sg-font-sans);
    --font-heading: var(--sg-font-sans);
    --font-display: var(--sg-font-sans);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
    scroll-padding-top: 96px;
}

body {
    background: var(--sg-color-bg);
    color: var(--sg-color-text);
    font-family: var(--sg-font-sans);
    font-size: var(--sg-text-base);
    line-height: var(--sg-leading-body);
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
[role="button"],
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 2px solid var(--sg-color-accent);
    outline-offset: 3px;
}

::selection {
    background: var(--sg-color-selection);
    color: var(--sg-color-text);
}

strong,
b {
    color: var(--sg-color-text);
    font-weight: var(--sg-weight-strong);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.65em;
    color: var(--sg-color-text);
    font-family: var(--sg-font-sans);
    font-weight: var(--sg-weight-heading);
    line-height: var(--sg-leading-heading);
    letter-spacing: -0.028em;
}

h1,
.hero-text h1,
.agents-page .hero-text h1,
.section-header h1,
.uc-hero__content h1,
.uc-hub-hero h1,
.blog-index-hero h1,
.article-hero h1,
.blog-article h1,
.legal-header h1,
.service-hero h1,
.service-hero-inner h1 {
    font-size: var(--sg-h1);
    font-weight: var(--sg-weight-heading);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

h2,
.section-header h2,
.agents-page .section-header h2,
.contact-intro h2,
.uc-cta-band h2 {
    font-size: var(--sg-h2);
    font-weight: var(--sg-weight-heading);
    line-height: var(--sg-leading-heading);
    letter-spacing: -0.035em;
}

h3 {
    font-size: var(--sg-h3);
}

h4 {
    font-size: var(--sg-h4);
}

p {
    color: var(--sg-color-text-secondary);
}

main li,
main dd,
main td {
    color: var(--sg-color-text-secondary);
}

main li strong,
main dd strong,
main td strong {
    color: var(--sg-color-text);
}

.section-header p,
.hero-text > p,
.uc-hero__lead,
.uc-hub-hero-lead,
.blog-index-lead,
.article-hero > p,
.contact-intro > p {
    max-width: 68ch;
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--sg-color-text-secondary);
}

.section-header {
    margin-bottom: var(--sg-space-12);
}

.section-header h1,
.section-header h2,
.hero-text h1,
.uc-hero__content h1,
.uc-hub-hero h1,
.blog-index-hero h1,
.article-hero h1,
.blog-article h1,
.legal-header h1 {
    margin-bottom: 0.4em;
}

/* Eyebrows / labels */
.section-tag,
.blog-card .section-tag,
.blog-article .section-tag,
.uc-hero__content .section-tag,
.uc-hub-hero .section-tag,
.uc-hub-card__tag,
.compliance-label,
.guide-toc p,
.guide-option-tag,
.guide-label,
.guide-label--gold,
.roi-calc legend,
.flow-kicker,
.query-label {
    color: var(--sg-color-text-secondary);
    font-size: var(--sg-text-xs);
    font-weight: var(--sg-weight-strong);
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-tag {
    display: inline-block;
    margin: 0 0 var(--sg-space-4);
    padding: 0;
    border: 0;
    background: none;
}

/* Text links inside content: always underlined so they never rely on
   colour alone; hover thickens the underline. */
main p a:not(.btn):not(.btn-primary):not(.btn-secondary),
main li a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.quick-link-btn),
main dd a,
main td a {
    color: var(--sg-color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

main p a:not(.btn):not(.btn-primary):not(.btn-secondary):hover,
main li a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.quick-link-btn):hover,
main dd a:hover,
main td a:hover {
    color: var(--sg-color-text);
    text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------------------
   Layout: container, sections, surfaces
   -------------------------------------------------------------------------- */
.services,
.why-choose-us,
.process,
.technologies,
.faq-section,
.contact-cta,
.pricing-section,
.blog-hub-section,
.uc-section,
.genai-industries,
.contact-section,
.about-credentials {
    padding-top: var(--sg-section-y);
    padding-bottom: var(--sg-section-y);
}

.uc-section--alt,
.trust-signals-strip,
.compliance-strip {
    background: var(--sg-color-surface);
}

.uc-section--alt {
    border-radius: 0;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */
#header {
    background: rgb(255 255 255 / 0.96);
    border-bottom: 1px solid var(--sg-color-border);
    backdrop-filter: blur(12px);
    box-shadow: none;
}

#header.scrolled {
    box-shadow: none;
}

nav[aria-label="Main navigation"] {
    max-width: calc(var(--sg-container-wide) + 2 * var(--sg-gutter));
}

.brand-name {
    color: var(--sg-color-text);
    font-weight: var(--sg-weight-heading);
    letter-spacing: -0.01em;
}

.tagline {
    color: var(--sg-color-text-secondary);
    letter-spacing: 0.04em;
}

.nav-links a:not(.cta-nav) {
    color: var(--sg-color-text-secondary);
    font-size: var(--sg-text-sm);
    font-weight: 550;
    text-decoration: none;
    transition: color var(--sg-motion-fast) var(--sg-ease);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active,
.nav-links a[aria-current="page"] {
    color: var(--sg-color-text);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.5em;
}

.nav-item-dropdown .nav-dropdown-menu {
    background: var(--sg-color-bg);
    border: 1px solid var(--sg-color-border);
    border-radius: var(--sg-radius-control);
    box-shadow: var(--sg-shadow-popover);
}

.nav-item-dropdown .nav-dropdown-menu a {
    color: var(--sg-color-text-secondary);
    text-decoration: none;
}

.nav-item-dropdown .nav-dropdown-menu a:hover,
.nav-item-dropdown .nav-dropdown-menu a:focus-visible {
    background: var(--sg-color-surface);
    color: var(--sg-color-text);
}

.nav-item-dropdown .nav-dropdown-menu .nav-dropdown-heading {
    color: var(--sg-color-text-secondary);
    font-weight: var(--sg-weight-strong);
    letter-spacing: 0.09em;
}

.mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--sg-color-border-strong);
    border-radius: var(--sg-radius-control);
    background: var(--sg-color-bg);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle[aria-expanded="true"] {
    background: var(--sg-color-surface);
    border-color: var(--sg-color-border-strong);
}

.mobile-menu-toggle span {
    background: var(--sg-color-text);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn,
.cta-nav {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: var(--sg-space-2);
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: var(--sg-radius-control);
    font-family: var(--sg-font-sans);
    font-size: var(--sg-text-sm);
    font-weight: var(--sg-weight-button);
    letter-spacing: normal;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    transition: background-color var(--sg-motion-normal) var(--sg-ease),
                border-color var(--sg-motion-normal) var(--sg-ease),
                color var(--sg-motion-normal) var(--sg-ease);
}

.btn-large {
    min-height: 48px;
    padding: 12px 24px;
    font-size: var(--sg-text-sm);
}

.btn-primary,
.btn-primary:visited,
.cta-nav,
.cta-nav:visited {
    background: var(--sg-color-primary);
    border-color: var(--sg-color-primary);
    color: var(--sg-color-primary-text);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active,
.cta-nav:hover,
.cta-nav:focus-visible,
.cta-nav:active {
    background: var(--sg-color-primary-hover);
    border-color: var(--sg-color-primary-hover);
    color: var(--sg-color-primary-text);
    transform: none;
    box-shadow: none;
}

/* Primary actions carry an outbound arrow in the label colour (white on the
   dark fill), never a coloured emoji. */
.btn-primary::after {
    content: "";
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn-secondary,
.btn-secondary:visited {
    background: transparent;
    border-color: var(--sg-color-border-strong);
    color: var(--sg-color-text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-secondary:active {
    background: var(--sg-color-surface);
    border-color: var(--sg-color-border-strong);
    color: var(--sg-color-text);
    transform: none;
    box-shadow: none;
}

.btn:disabled,
.btn[aria-disabled="true"],
.btn[aria-busy="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Navigation chips and option buttons share the secondary button. */
.quick-link-btn,
.contact-method,
.industry-filter-clear {
    min-height: 44px;
    border: 1px solid var(--sg-color-border-strong);
    border-radius: var(--sg-radius-control);
    background: var(--sg-color-bg);
    color: var(--sg-color-text);
    font-size: var(--sg-text-sm);
    font-weight: var(--sg-weight-button);
    text-decoration: none;
    box-shadow: none;
    transform: none;
    transition: background-color var(--sg-motion-normal) var(--sg-ease),
                border-color var(--sg-motion-normal) var(--sg-ease);
}

.quick-link-btn:hover,
.quick-link-btn:focus-visible,
.contact-method:hover,
.contact-method:focus-visible,
.industry-filter-clear:hover,
.industry-filter-clear:focus-visible {
    background: var(--sg-color-surface);
    border-color: var(--sg-color-border-strong);
    color: var(--sg-color-text);
    transform: none;
}

.quick-link-btn {
    padding: 11px 16px;
}

/* Hero / CTA action rows */
.cta-buttons,
.hero-buttons,
.uc-hero__cta,
.contact-cta-buttons {
    gap: var(--sg-space-3);
}

/* Tertiary card links */
.service-link,
.read-more,
.uc-hub-card__link,
.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--sg-color-text);
    font-size: var(--sg-text-sm);
    font-weight: var(--sg-weight-strong);
    text-decoration: none;
}

.service-link:hover,
.read-more:hover,
.uc-hub-card__link:hover,
a.uc-hub-card:hover .uc-hub-card__link {
    color: var(--sg-color-text);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.why-card,
.service-card,
.genai-industry-card,
.service-page-card,
.service-cluster-card,
.article-card,
.blog-card,
.uc-panel,
.uc-hub-card,
.uc-step,
.pricing-card,
.stat-card,
.testimonial-card,
.careers-block,
.pricing-ladder-step,
.faq-item,
.step-content,
.guide-decision,
.roi-calc,
.tech-layer {
    min-width: 0;
    background: var(--sg-color-bg);
    border: 1px solid var(--sg-color-border);
    border-radius: var(--sg-radius-card);
    box-shadow: none;
    transform: none;
    transition: border-color var(--sg-motion-normal) var(--sg-ease),
                box-shadow var(--sg-motion-normal) var(--sg-ease);
}

.why-card,
.service-card,
.genai-industry-card,
.service-page-card,
.service-cluster-card,
.article-card,
.blog-card,
.uc-panel,
.uc-hub-card,
.uc-step,
.pricing-card,
.testimonial-card,
.careers-block,
.pricing-ladder-step,
.faq-item {
    padding: var(--sg-card-padding);
}

.why-card:hover,
.service-card:hover,
.genai-industry-card:hover,
.service-page-card:hover,
.service-cluster-card:hover,
.article-card:hover,
.blog-card:hover,
.uc-hub-card:hover,
a.uc-hub-card:hover,
.pricing-card:hover,
.testimonial-card:hover,
.step-content:hover {
    background: var(--sg-color-bg);
    border-color: var(--sg-color-border-strong);
    box-shadow: var(--sg-shadow-subtle);
    transform: none;
}

.why-card::before,
.service-card::before,
.genai-industry-card::before,
.blog-card::before,
.article-card::before {
    display: none;
}

/* Card titles use the H3 scale; h2 elements used as card titles follow it. */
.why-card h2,
.why-card h3,
.service-card h3,
.genai-industry-card h3,
.service-page-card h2,
.service-page-card h3,
.service-cluster-card h2,
.service-cluster-card h3,
.article-card h2,
.article-card h3,
.blog-card h2,
.blog-card h3,
.uc-panel h3,
.uc-hub-card h2,
.uc-step h3,
.careers-block h2,
.careers-block h3,
.pricing-ladder-step h3,
.faq-item h3,
.step-content h3,
.guide-cards .why-card h3,
.pricing-name {
    margin: 0 0 10px;
    color: var(--sg-color-text);
    font-size: var(--sg-h3);
    font-weight: var(--sg-weight-heading);
    line-height: 1.25;
    letter-spacing: -0.028em;
}

.why-card p,
.service-card p,
.genai-industry-card p,
.service-page-card p,
.service-cluster-card p,
.article-card p,
.blog-card p:not(.section-tag),
.uc-panel p,
.uc-hub-card p,
.uc-step p,
.step-content p {
    color: var(--sg-color-text-secondary);
    font-size: var(--sg-text-base);
    line-height: var(--sg-leading-body);
}

/* Soft panels: callouts, CTA bands, hero panels, credential blocks. */
.service-callout,
.service-hero-inner,
.article-hero,
.uc-cta-band,
.guide-cta,
.guide-toc,
.founder-cred-block,
.hero-credly-card,
.pricing-assurance-item,
.contact-container,
.uc-hero__visual,
.compliance-strip,
.trust-signals-strip,
.uc-hub-filter-bar,
.apply-close {
    background: var(--sg-color-surface);
    border: 1px solid var(--sg-color-border);
    border-radius: var(--sg-radius-card);
    box-shadow: none;
}

.query-card,
.careers-pay-note {
    border-top-color: var(--sg-color-border);
}

.query-links a {
    color: var(--sg-color-text);
    border-color: var(--sg-color-border-strong);
}

.query-links a:hover {
    background: var(--sg-color-surface);
}

/* Contact page: "Choose how you'd like to connect" is the page H1. */
.contact-alternatives .alternatives-title {
    margin: 0 0 0.4em;
    color: var(--sg-color-text);
    font-size: var(--sg-h1);
    font-weight: var(--sg-weight-heading);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.contact-alternatives .connect-subtext {
    max-width: 68ch;
    margin-inline: auto;
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.6;
}

.contact-method {
    font-family: inherit;
    font-size: var(--sg-text-sm);
    font-weight: var(--sg-weight-button);
    line-height: 1.2;
    color: var(--sg-color-text);
}

.contact-method .method-text {
    font: inherit;
    color: inherit;
}

.contact-method .method-icon {
    color: var(--sg-color-text);
}

/* About page credential accordion (details/summary). */
.about-credentials .accordion-item {
    background: var(--sg-color-bg);
    border: 1px solid var(--sg-color-border);
    border-radius: var(--sg-radius-card);
    box-shadow: none;
}

.about-credentials .accordion-item[open] {
    border-color: var(--sg-color-border-strong);
}

.about-credentials .accordion-item summary {
    color: var(--sg-color-text);
    font-weight: var(--sg-weight-heading);
}

.about-credentials .accordion-list-item a,
.about-credentials .accordion-list-item .accordion-static {
    border-radius: var(--sg-radius-control);
}

.uc-hero__visual {
    border-radius: var(--sg-radius-panel);
}

.contact-container {
    background: var(--sg-color-bg);
}

/* Compact tiles inside cards and diagrams. */
.guide-diagram-box,
.guide-steps li,
.guide-matrix-cell,
.roi-result,
.tech-item-compact,
.uc-hero__visual-badge {
    background: var(--sg-color-bg);
    border: 1px solid var(--sg-color-border);
    border-radius: var(--sg-radius-control);
    box-shadow: none;
}

.guide-diagram-box--top,
.guide-diagram-box--bottom,
.roi-result--key,
.guide-matrix-cell--key {
    background: var(--sg-color-surface);
    border-color: var(--sg-color-border-strong);
}

.guide-formula,
.guide-section p.guide-callout {
    background: var(--sg-color-surface);
    border: 1px solid var(--sg-color-border);
    border-left: 3px solid var(--sg-color-text);
    border-radius: var(--sg-radius-control);
}

.guide-formula {
    font-family: var(--sg-font-mono);
    font-size: var(--sg-text-sm);
}

.guide-decision {
    border-left: 3px solid var(--sg-color-text);
}

.guide-decision .guide-decision-a,
.guide-diagram-branch .guide-diagram-box span,
.guide-diagram-connector,
.guide-stack li + li::before,
.guide-steps li:not(:last-child)::after {
    color: var(--sg-color-text-secondary);
}

.guide-steps li::before {
    background: var(--sg-color-primary);
    color: var(--sg-color-primary-text);
}

/* Pricing */
.pricing-card--featured {
    border-color: var(--sg-color-text);
    box-shadow: none;
}

.pricing-card--free {
    border-color: var(--sg-color-border);
}

/* Process / numbered steps */
.step-number,
.layer-number,
.uc-step__num {
    background: var(--sg-color-primary);
    color: var(--sg-color-primary-text);
    box-shadow: none;
    font-weight: var(--sg-weight-strong);
}

/* --------------------------------------------------------------------------
   Badges / chips
   -------------------------------------------------------------------------- */
.compliance-badge,
.guide-tags li,
.guide-stack span,
.role-pill,
.role-pill-quiet,
.pricing-badge,
.pricing-card--free .pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid var(--sg-color-border);
    border-radius: var(--sg-radius-pill);
    background: var(--sg-color-surface);
    color: var(--sg-color-text-secondary);
    font-size: var(--sg-text-xs);
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: none;
    transform: none;
}

.pricing-badge,
.pricing-card--free .pricing-badge {
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.compliance-badge:hover,
.compliance-badge:focus-visible {
    border-color: var(--sg-color-border-strong);
    color: var(--sg-color-text);
    transform: none;
    box-shadow: none;
}

.compliance-badge::before {
    display: none;
}

.guide-tags.guide-tags--links li {
    padding: 0;
}

.guide-section .guide-tags--links a {
    color: var(--sg-color-text-secondary);
    padding: 4px 9px;
    text-decoration: none;
}

.guide-section .guide-tags--links a:hover,
.guide-section .guide-tags--links a:focus-visible {
    background: transparent;
    color: var(--sg-color-text);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group label,
.industry-filter-label,
.roi-calc .form-group label {
    color: var(--sg-color-text);
    font-size: var(--sg-text-sm);
    font-weight: var(--sg-weight-strong);
}

.form-group input,
.form-group select,
.form-group textarea,
.roi-calc .form-group input,
.roi-calc .form-group select,
.industry-filter-select,
#chat-input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--sg-color-border-strong);
    border-radius: var(--sg-radius-control);
    background-color: var(--sg-color-bg);
    color: var(--sg-color-text);
    font-size: var(--sg-text-base);
    box-shadow: none;
    transform: none;
}

.form-group select,
.roi-calc .form-group select,
.industry-filter-select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23626262' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 16px 16px;
}

.industry-filter-select {
    width: auto;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
#chat-input::placeholder {
    color: var(--sg-color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.roi-calc .form-group input:focus,
.roi-calc .form-group select:focus,
.industry-filter-select:focus,
#chat-input:focus {
    outline: none;
    border-color: var(--sg-color-accent);
    background-color: var(--sg-color-bg);
    box-shadow: var(--sg-focus-ring);
    transform: none;
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--sg-color-error);
}

.form-group.error input:focus,
.form-group.error textarea:focus,
.form-group.error select:focus {
    border-color: var(--sg-color-error);
    box-shadow: 0 0 0 3px rgb(180 35 24 / 0.18);
}

.form-note,
.roi-calc-hint {
    color: var(--sg-color-text-secondary);
    font-size: var(--sg-text-sm);
}

.optional-note {
    color: var(--sg-color-text-secondary);
    font-size: var(--sg-text-sm);
    font-weight: 400;
}

.error-message,
.field-error {
    color: var(--sg-color-error);
    font-size: var(--sg-text-sm);
}

/* Alerts / status */
.success-message {
    padding: 14px 16px;
    border: 1px solid var(--sg-color-success-border);
    border-radius: var(--sg-radius-control);
    background: var(--sg-color-success-bg);
    color: var(--sg-color-success);
    font-weight: 600;
}

.success-message.is-error {
    border-color: var(--sg-color-error-border);
    background: var(--sg-color-error-bg);
    color: var(--sg-color-error);
}

.success-message p {
    color: inherit;
}

.roi-result--negative dd {
    color: var(--sg-color-error);
}

.roi-copy-status {
    color: var(--sg-color-success);
}

/* --------------------------------------------------------------------------
   Metrics
   -------------------------------------------------------------------------- */
.stat-number,
.uc-stat__value,
.pricing-amount {
    color: var(--sg-color-text);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: var(--sg-weight-strong);
    line-height: 1.1;
    letter-spacing: -0.04em;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.stat-label {
    color: var(--sg-color-text-secondary);
}

/* Use-case proof strip: the values are short words ("Traceable", "Counsel
   gate"), not numbers, so they take the card-title scale rather than the
   numeric metric scale, which pushed them out of a two-column grid. */
.uc-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.uc-stat {
    min-width: 0;
    padding: 20px 16px;
}

.uc-stat .uc-stat__value {
    font-size: var(--sg-h3);
    font-weight: var(--sg-weight-heading);
    line-height: 1.2;
    letter-spacing: -0.028em;
    overflow-wrap: break-word;
}

.uc-stat__label {
    margin-top: 8px;
    color: var(--sg-color-text-secondary);
    font-size: var(--sg-text-sm);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
}

@media (min-width: 768px) {
    .uc-stat-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .uc-stat-strip {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.guide-table th,
.guide-table td,
.article-body th,
.article-body td,
.blog-prose th,
.blog-prose td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--sg-color-border);
    text-align: left;
    vertical-align: top;
}

.guide-table thead th,
.article-body thead th,
.blog-prose thead th {
    background: var(--sg-color-surface);
    color: var(--sg-color-text);
    font-size: var(--sg-text-sm);
    font-weight: var(--sg-weight-strong);
    letter-spacing: normal;
    text-transform: none;
}

.guide-table tbody th {
    color: var(--sg-color-text);
    font-weight: var(--sg-weight-strong);
}

.guide-table tbody tr {
    border-bottom: 0;
}

.guide-table caption {
    color: var(--sg-color-text-secondary);
    font-size: var(--sg-text-sm);
}

/* --------------------------------------------------------------------------
   Editorial: blog articles, guides, legal pages
   -------------------------------------------------------------------------- */
.guide-prose,
.blog-article .blog-prose,
.article-body,
.legal-content {
    max-width: var(--sg-reading-width);
}

.guide-section p,
.guide-list li,
.blog-article .blog-prose p,
.blog-article .blog-prose li,
.article-body p,
.article-body li,
.legal-content p,
.legal-content li {
    font-size: 1.0625rem;
    line-height: 1.8;
}

/* Long-form headings sit at the low end of the H2/H3 scale so they stay in
   proportion with a 740px reading column. */
.guide-section h2,
.blog-article .blog-prose h2,
.article-body h2,
.legal-content h2 {
    margin-top: 2.2em;
    font-size: 2rem;
    font-weight: var(--sg-weight-heading);
    letter-spacing: -0.035em;
    line-height: var(--sg-leading-heading);
}

.guide-section > h2:first-child,
.legal-content section:first-child h2 {
    margin-top: 0;
}

.guide-section h3,
.blog-article .blog-prose h3,
.article-body h3,
.legal-content h3 {
    margin-top: 1.7em;
    font-size: 1.25rem;
    font-weight: var(--sg-weight-heading);
}

.guide-list,
.blog-article .blog-prose ul,
.blog-article .blog-prose ol,
.article-body ul,
.article-body ol {
    padding-left: 1.35em;
}

.guide-list li + li,
.blog-article .blog-prose li + li,
.article-body li + li {
    margin-top: 0.5em;
}

pre,
code {
    font-family: var(--sg-font-mono);
}

pre {
    overflow-x: auto;
    padding: 20px;
    border: 1px solid var(--sg-color-border);
    border-radius: var(--sg-radius-control);
    background: #f6f6f6;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Breadcrumb */
nav.breadcrumb a {
    color: var(--sg-color-text-secondary);
}

nav.breadcrumb a:hover {
    color: var(--sg-color-text);
}

nav.breadcrumb .breadcrumb-current {
    color: var(--sg-color-text);
    font-weight: 550;
}

/* --------------------------------------------------------------------------
   Footer
   The handoff allows a neutral footer; it is used because the logo asset is
   black and must not be recoloured for a dark background.
   -------------------------------------------------------------------------- */
.site-footer {
    padding: 56px var(--sg-gutter) 28px;
    background: var(--sg-color-surface);
    border-top: 1px solid var(--sg-color-border);
}

.site-footer__main,
.site-footer__bottom {
    max-width: var(--sg-container);
}

.site-footer__main {
    gap: var(--sg-space-8);
}

.site-footer__logo {
    color: var(--sg-color-text);
    font-weight: var(--sg-weight-heading);
}

.site-footer__brand p,
.site-footer__bottom p {
    color: var(--sg-color-text-secondary);
    font-size: var(--sg-text-sm);
}

.site-footer__col h2 {
    margin-bottom: 12px;
    color: var(--sg-color-text);
    font-size: var(--sg-text-sm);
    font-weight: var(--sg-weight-strong);
    letter-spacing: normal;
}

.site-footer__col li + li {
    margin-top: 9px;
}

.site-footer__col a,
.site-footer__legal a {
    color: var(--sg-color-text-secondary);
    font-size: var(--sg-text-sm);
    text-decoration: none;
}

.site-footer__col a:hover,
.site-footer__legal a:hover {
    color: var(--sg-color-text);
    text-decoration: underline;
}

.site-footer__bottom {
    border-top: 1px solid var(--sg-color-border);
}

.site-footer .social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--sg-color-border);
    border-radius: var(--sg-radius-control);
    background: var(--sg-color-bg);
    color: var(--sg-color-text-secondary);
}

.site-footer .social-link:hover {
    border-color: var(--sg-color-border-strong);
    background: var(--sg-color-bg);
    color: var(--sg-color-text);
}

/* --------------------------------------------------------------------------
   Chat widget
   -------------------------------------------------------------------------- */
.chat-toggle-btn,
.chat-avatar {
    background: var(--sg-color-primary);
    color: var(--sg-color-primary-text);
}

.chat-toggle-btn {
    box-shadow: var(--sg-shadow-popover);
}

/* --------------------------------------------------------------------------
   Focus states that older component rules had removed
   -------------------------------------------------------------------------- */
.hero-credly-link:focus-visible,
.announcement-bar__close:focus-visible,
.nav-item-dropdown .nav-dropdown-menu a:focus-visible {
    outline: 2px solid var(--sg-color-accent);
    outline-offset: 3px;
}

#header .nav-item-dropdown .nav-dropdown-menu a:focus-visible {
    outline-offset: -2px;
}

/* --------------------------------------------------------------------------
   Navigation: dropdown indicator, desktop dismissal, mobile menu
   -------------------------------------------------------------------------- */
#header .nav-item-dropdown .nav-dropdown-toggle::after {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: none;
    transition: transform var(--sg-motion-normal) var(--sg-ease);
}

@media (min-width: 769px) {
    #header .nav-item-dropdown.is-dismissed .nav-dropdown-menu {
        display: none;
    }

    #header .nav-links .cta-nav {
        padding: 11px 18px;
    }
}

@media (max-width: 768px) {
    :root {
        --mobile-nav-offset: 69px;
    }

    #header,
    #header.scrolled {
        padding-block: 9px;
    }

    #header-placeholder {
        min-height: calc(69px + var(--announcement-bar-height, 0px));
    }

    #header .nav-links {
        gap: 0;
        align-items: stretch;
        padding: 8px var(--sg-gutter) 20px;
        background: var(--sg-color-bg);
        border-top: 1px solid var(--sg-color-border);
        box-shadow: var(--sg-shadow-popover);
        backdrop-filter: none;
    }

    #header .nav-links > li {
        border-bottom: 1px solid var(--sg-color-border);
    }

    #header .nav-links > li:last-child {
        border-bottom: 0;
        padding-top: 16px;
    }

    #header .nav-links > li > a:not(.cta-nav) {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 48px;
        color: var(--sg-color-text);
        font-size: var(--sg-text-base);
        font-weight: 550;
        text-align: left;
        text-decoration: none;
    }

    #header .nav-links > li > a.active:not(.cta-nav),
    #header .nav-links > li > a[aria-current="page"]:not(.cta-nav) {
        font-weight: var(--sg-weight-strong);
        text-decoration: none;
    }

    #header .nav-item-dropdown .nav-dropdown-toggle::after {
        width: 12px;
        height: 12px;
        color: var(--sg-color-text-secondary);
    }

    #header .nav-item-dropdown.open .nav-dropdown-toggle::after {
        transform: rotate(180deg);
    }

    #header .nav-item-dropdown .nav-dropdown-menu {
        margin: 0;
        padding: 0 0 8px;
    }

    #header .nav-item-dropdown .nav-dropdown-menu a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 12px;
        border-radius: var(--sg-radius-control);
        color: var(--sg-color-text-secondary);
        font-size: 15px;
        opacity: 1;
        white-space: normal;
    }

    #header .nav-item-dropdown .nav-dropdown-menu .nav-dropdown-heading {
        padding: 12px 12px 4px;
    }

    #header .nav-links .cta-nav {
        display: flex;
        width: 100%;
        min-height: 48px;
        justify-content: center;
        font-size: var(--sg-text-sm);
    }

    body.mobile-nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 998;
        background: rgb(23 23 23 / 0.32);
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .section-header {
        margin-bottom: var(--sg-space-10);
    }
}

@media (max-width: 767px) {
    :root {
        --sg-gutter: 18px;
        --sg-section-y: 56px;
    }

    .cta-buttons,
    .hero-buttons,
    .uc-hero__cta {
        align-items: stretch;
    }

    .cta-buttons .btn,
    .hero-buttons .btn,
    .uc-hero__cta .btn {
        width: 100%;
    }

    .cta-nav {
        min-height: 42px;
        padding-inline: 13px;
    }

    .guide-section h2,
    .blog-article .blog-prose h2,
    .article-body h2,
    .legal-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 380px) {
    :root {
        --sg-gutter: 16px;
    }

    h1,
    .hero-text h1,
    .section-header h1,
    .uc-hero__content h1,
    .uc-hub-hero h1,
    .blog-index-hero h1,
    .article-hero h1,
    .blog-article h1,
    .legal-header h1 {
        font-size: clamp(2.15rem, 11vw, 2.6rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
