/* Shared finish, loaded after page styles. Full-width sections stay full bleed. */
:root {
  --nyd-font: 'Segoe UI', Arial, Helvetica, sans-serif;
  --nyd-radius-control: 11px;
  --nyd-radius-button: 14px;
  --nyd-radius-card: 20px;
  --nyd-radius-panel: 24px;
  --nyd-radius-image: 12px;
  --nyd-ease: cubic-bezier(.22, 1, .36, 1);
  --nyd-focus: #77adfa;
  --nyd-blue: #246cd2;
  --nyd-eyebrow-color: var(--nyd-blue);
  --nyd-dark-surface: #102e52;
}

body { font-family: var(--nyd-font); }
button, input, select, textarea { font-family: inherit; }
/* Page-specific font shorthands must not change the shared type family. */
body :is(h1, h2, h3, h4, p, a, span, strong, small, label, input, button,
    select, textarea, legend, summary, dt, dd, li, th, td, figcaption, em) {
  font-family: var(--nyd-font) !important;
}
:is(.platform-hero, .platform-copy, .platform-heading, .platform-final,
    .roi-hero, .roi-section-head, .roi-results-head, .roi-method, .roi-final,
    .blog-hero, .blog-list-heading, .blog-card, .blog-cta, .article-hero,
    .article-body, .related-section) :is(h1, h2, h3),
.platform-feature-grid strong, .platform-integration-grid h3,
.roi-form legend, .roi-art-number, .roi-result-main strong,
.roi-result-grid strong, .home-blog-grid strong {
  font-family: var(--nyd-font);
  font-weight: 750;
}
.platform-eyebrow, .roi-eyebrow, .blog-eyebrow, .blog-category,
.filter-chip, .platform-proof span, .roi-fields label,
.roi-fields input, .blog-search-label input { font-family: var(--nyd-font); }

/* Actions share corners, focus and a stationary hover. Only arrows move. */
.button, .nyd-secondary-cta {
  max-width: 100%;
  border-radius: var(--nyd-radius-button);
  gap: 16px;
  padding: 14px 21px;
  font-family: var(--nyd-font);
  line-height: 1.4;
  transition: background-color 220ms ease, border-color 220ms ease,
    color 220ms ease, box-shadow 220ms ease;
}
.button-small { padding: 10px 15px; gap: 12px; }
.button:hover, .nyd-secondary-cta:hover { transform: none; }
.button-lime {
  background: var(--lime);
  color: var(--navy);
  border-color: #c7ed7c;
  box-shadow: 0 0 0 1px rgb(199 243 106 / 8%), 0 4px 16px rgb(199 243 106 / 10%);
}
.button-lime:hover {
  background: #d0f77e;
  color: var(--navy);
  border-color: #dcf9a8;
  box-shadow: 0 0 0 3px rgb(199 243 106 / 9%), 0 5px 20px rgb(199 243 106 / 15%);
}
.button-dark { background: var(--navy); border-color: var(--navy); }
.button-dark:hover {
  background: #163a60; border-color: #315777;
  box-shadow: 0 3px 14px rgb(8 27 53 / 12%);
}
.button-outline-light:hover, .nyd-secondary-cta--dark:hover {
  background: rgb(255 255 255 / 9%); border-color: #a6c8e4;
  box-shadow: 0 0 0 3px rgb(166 200 228 / 5%);
}
.nyd-secondary-cta:not(.nyd-secondary-cta--dark):hover {
  box-shadow: 0 0 0 3px rgb(36 108 210 / 5%);
}
.button > [aria-hidden="true"], .nyd-secondary-cta-arrow {
  display: inline-block; flex: none; align-self: center;
  transition: transform 220ms var(--nyd-ease);
}
.button:hover > [aria-hidden="true"],
.nyd-secondary-cta:hover .nyd-secondary-cta-arrow { transform: translateX(2px); }
.button:focus-visible, .nyd-secondary-cta:focus-visible,
.menu-button:focus-visible, .filter-chip:focus-visible, .roi-reset:focus-visible,
.blog-search-label input:focus-visible, .roi-fields input:focus-visible {
  outline: 3px solid var(--nyd-focus); outline-offset: 4px;
}

/* Component-specific radii. No rounding on sections, copy, dividers or footer. */
.hero-art, .storefront-figure, .showcase-figure, .flow-card,
.image-dialog, .platform-hero-shot, .platform-image, .roi-hero-art,
.roi-form, .roi-results, .blog-hero-visual, .article-callout {
  border-radius: var(--nyd-radius-panel);
}
.capability-card, .price-card, .tier-card, .scope-card,
.home-growth-grid article, .home-blog-grid a, .founder-card,
.platform-feature-grid article, .platform-integration-grid article,
.blog-card, .article-hero figure, .article-sidebar, .legal-details,
.journey article, .journey article + article, .journey article:nth-child(3),
.integration-page .native-steps article,
.integration-page .marketplace-features article,
.integration-page .payments-steps article {
  border-radius: var(--nyd-radius-card);
}
.hero-shot, .storefront-shot, .showcase-figure .screenshot-button,
.platform-hero-shot img, .platform-image img, .blog-hero-visual img,
.article-hero img { border-radius: var(--nyd-radius-image); }
.roi-result-main { border-radius: 18px; }
.roi-result-grid > div { border-radius: 16px; }
.roi-fields input, .blog-search-label input, .filter-chip, .roi-reset,
.menu-button, .dialog-header button, .visual-motion {
  border-radius: var(--nyd-radius-control);
}
.platform-proof span { border-radius: var(--nyd-radius-control); }
.capability-index { border-radius: 10px; }
.founder-photo-wrap { border-radius: 0; } /* The enclosing card clips the photo. */

.platform-hero, .roi-hero, .blog-hero {
  background: radial-gradient(ellipse at 80% 25%, #285b91 0%, transparent 58%),
    linear-gradient(120deg, #0d2442, #183f6c);
  color: #f5faff;
}
.platform-hero-shot, .roi-hero-art, .blog-hero-visual { transform: none; }
.platform-hero h1, .roi-hero h1, .blog-hero h1 { letter-spacing: -.05em; }
.blog-hero h1 em { color: #a6d8ff; }
.platform-hero-shot, .platform-image, .blog-hero-visual {
  box-shadow: 0 20px 50px rgb(8 27 53 / 12%);
}
.platform-feature-grid article, .platform-integration-grid article {
  background: linear-gradient(145deg, #f8fbff, #edf5ff);
  border-color: #cbdff2;
}
.platform-feature-grid article, .platform-integration-grid article,
.capability-card, .blog-card, .home-blog-grid a {
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
@media (hover: hover) {
  .platform-feature-grid article:hover, .platform-integration-grid article:hover,
  .capability-card:hover, .blog-card:hover, .home-blog-grid a:hover {
    transform: none;
    box-shadow: 0 16px 36px rgb(19 63 108 / 10%);
    border-color: #9dbfdf;
  }
}
.blog-card:hover img { transform: none; }
.filter-chip { min-height: 44px; transition: background-color 220ms ease, border-color 220ms ease; }
.filter-chip:not(.is-active):hover { background: #edf4fb; border-color: #a3bed7; }
.roi-fields input, .blog-search-label input {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.roi-fields input:focus { border-color: #246cd2; box-shadow: 0 0 0 3px rgb(36 108 210 / 10%); }
.roi-fields input[aria-invalid="true"] { border-color: #b54949; }
.roi-reset {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 16px; border: 1px solid #d5e2ec;
  background: #eaf2f8; color: #195fb8; font-size: 13px;
  transition: background-color 220ms ease, border-color 220ms ease;
}
.roi-reset:hover { background: #e0edff; border-color: #8db5eb; text-decoration: none; }
.roi-final .button { white-space: normal; }
.roi-fields label { min-width: 0; }
.article-layout { grid-template-columns: 240px minmax(0, 720px); gap: 56px; }
.article-body { min-width: 0; } /* Open reading column, never a full-article card. */
.article-sidebar a:hover, .article-more a:hover, .blog-card-link:hover {
  color: #195fb8; text-decoration: underline; text-underline-offset: 4px;
}
.blog-card-link span { display: inline-block; transition: transform 220ms ease; }
.blog-card-link:hover span { transform: translateX(2px); }

/* A calmer rhythm on the homepage, preserving every section and its contents. */
body:has(.home-platform-update) .section { padding-block: 88px; }
body:has(.home-platform-update) .section-heading { margin-bottom: 36px; }
body:has(.home-platform-update) .hero-grid { padding-block: 72px 76px; }
body:has(.home-platform-update) .hero-art { transform: none; }
body:has(.home-platform-update) .journey article { min-height: 260px; }
.platform-section { padding-block: 92px; }
.blog-listing { padding-block: 84px 96px; }
.blog-hero, .platform-hero, .roi-hero { padding-block: 88px 94px; }
.about-complement-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.about-complement-copy { color: #4f6578; line-height: 1.8; }
.about-complement-copy p:last-child { margin-bottom: 0; }
.about-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.about-service-grid .capability-card { min-height: 0; }
.about-service-grid .capability-card h3 { margin-top: 0; }
.about-service-grid .capability-card p { margin-bottom: 0; }
#como-trabalhamos .journey { gap: 18px; border: 0; }
.about-complement-grid h2 { font-size: clamp(30px, 3.25vw, 44px); line-height: 1.18; }
.legal-details dd { overflow-wrap: anywhere; }

/* Eyebrows describe their surface, with the same two brand accents everywhere. */
.hero, .about-hero, .platform-hero, .roi-hero, .blog-hero,
.bling-section, .closing-section, .platform-final, .roi-final, .blog-cta,
.roi-results, .article-callout, .commercial-panel, .store-hero, .store-final, .olist-guide > .guide-hero {
  --nyd-eyebrow-color: var(--lime);
}
.eyebrow, .landing-eyebrow, .platform-eyebrow, .roi-eyebrow, .blog-eyebrow,
:root :is(.integration-page,.olist-guide) .store-eyebrow {
  color: var(--nyd-eyebrow-color) !important;
}

/* Explicit light variant must survive the generic eyebrow color rule. */
.eyebrow.eyebrow-light { color: var(--lime) !important; }

/* Original Home eyebrow typography, shared by equivalent section labels only. */
.capabilities .section-heading > .eyebrow,
:root :is(.eyebrow, .landing-eyebrow, .platform-eyebrow, .roi-eyebrow, .blog-eyebrow),
:root :is(.integration-page,.olist-guide) .store-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase;
}

/* The About hero now uses the same animated surface as Home and Integrations. */
.about-hero.hero { background: var(--nyd-dark-surface); }
.about-hero.hero .about-hero-inner { position: relative; z-index: 1; }

/* Match the results panel and its accents to the site's navy and button lime. */
.roi-results {
  background: var(--nyd-dark-surface);
  border-color: var(--nyd-dark-surface);
}
.roi-results-head > span, .roi-result-main strong:not(.is-negative),
.roi-art-top span:last-child, .roi-art-number span, .roi-feedback {
  color: var(--lime);
}
.roi-art-bars i { background: linear-gradient(var(--lime), rgb(199 243 106 / 45%)); }
.roi-result-main, .roi-result-grid > div { border-color: rgb(166 216 255 / 23%); }
.platform-hero-shot > span, .platform-image > span,
.blog-hero-visual > span, .blog-category { color: var(--nyd-blue); }
.platform-hero-shot > span, .blog-hero-visual > span { color: var(--lime); }
.platform-icon { background: #e5f0ff; color: var(--nyd-blue); }

/* Text and actions share a vertical centre in every closing section. */
.closing-inner, .platform-final .container, .roi-final .container,
.blog-cta .container { align-items: center; }
.closing-inner > div:last-child, .platform-final .container > div:last-child {
  align-self: center;
}
.footer-main { align-items: start; }
.footer-bottom { align-items: center; }

/* Native navigation effects are defined once in page-transitions.css. */

@media (max-width: 980px) {
  .article-layout, .about-complement-grid { grid-template-columns: 1fr; gap: 32px; }
  .article-sidebar { position: static; }
  .about-service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .blog-hero, .platform-hero, .roi-hero { padding-block: 60px 68px; }
  .platform-section, .blog-listing { padding-block: 64px; }
  body:has(.home-platform-update) .section { padding-block: 64px; }
  body:has(.home-platform-update) .hero-grid { padding-block: 52px 68px; }
  body:has(.home-platform-update) .journey article { min-height: 0; }
  .article-callout { padding: 26px; }
  .platform-final .container > div:last-child, .blog-search-label { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .button:hover > [aria-hidden="true"],
  .nyd-secondary-cta:hover .nyd-secondary-cta-arrow,
  .blog-card-link:hover span { transform: none; }
}
