/* GKIT structure hotfix v2 - 2026-07-16
   Purpose:
   - Force centered professional layout
   - Fix homepage sections that escaped container layout
   - Keep apps page card layout centered and responsive
   - Remove public template/version feel
*/

:root {
  --gkit-max: 1120px;
  --gkit-wide: 1180px;
  --gkit-gutter: 32px;
  --gkit-ink: #061833;
  --gkit-muted: #5f6b7a;
  --gkit-green: #2f8f3a;
  --gkit-green-dark: #24742f;
  --gkit-border: rgba(15, 23, 42, 0.12);
  --gkit-soft: #f4f7f5;
  --gkit-card: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  margin: 0;
  color: var(--gkit-ink);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

main,
.gkit-main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.gkit-container,
.gkit-home-container,
.gkit-page-container,
.gkit-section > .gkit-container,
.gkit-page-hero > .gkit-container {
  width: min(var(--gkit-max), calc(100% - var(--gkit-gutter))) !important;
  max-width: var(--gkit-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.gkit-home-section,
.gkit-section {
  padding-top: clamp(48px, 7vw, 86px);
  padding-bottom: clamp(48px, 7vw, 86px);
}

.gkit-home-muted,
.gkit-section-muted {
  background: var(--gkit-soft);
}

.gkit-center {
  text-align: center;
}

.gkit-center p {
  margin-left: auto;
  margin-right: auto;
}

.gkit-kicker,
.gkit-eyebrow,
.gkit-app-kicker {
  display: block;
  margin: 0 0 0.75rem;
  color: var(--gkit-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

main h1,
main h2,
main h3 {
  color: var(--gkit-ink);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

main h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  letter-spacing: -0.045em;
}

main h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  letter-spacing: -0.035em;
}

main h3 {
  margin: 0 0 0.55rem;
  font-size: 1.16rem;
}

.gkit-lead,
.gkit-section-lead,
.gkit-text {
  color: var(--gkit-muted);
  line-height: 1.65;
}

.gkit-lead,
.gkit-section-lead {
  max-width: 760px;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.gkit-btn,
.gkit-app-actions a,
.gkit-hero-actions a,
.gkit-home-actions a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.1;
  text-decoration: none !important;
  white-space: nowrap;
}

.gkit-btn-primary,
.gkit-app-actions a:first-child,
.gkit-hero-actions a:first-child,
.gkit-home-actions a:first-child {
  color: #ffffff !important;
  background: var(--gkit-green);
  border: 1px solid var(--gkit-green);
  box-shadow: 0 10px 24px rgba(47, 143, 58, 0.20);
}

.gkit-btn-secondary,
.gkit-app-actions a:not(:first-child),
.gkit-hero-actions a:not(:first-child),
.gkit-home-actions a:not(:first-child) {
  color: var(--gkit-green-dark) !important;
  background: #ffffff;
  border: 1px solid rgba(47, 143, 58, 0.28);
}

.gkit-home-actions,
.gkit-hero-actions,
.gkit-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.gkit-home-hero {
  padding-top: clamp(58px, 8vw, 110px);
  padding-bottom: clamp(52px, 7vw, 90px);
}

.gkit-home-hero .gkit-lead {
  margin-top: 1.2rem;
}

.gkit-challenge-grid,
.gkit-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}

.gkit-solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}

.gkit-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gkit-home-card,
.gkit-portfolio-card,
.gkit-solution-card,
.gkit-app-card {
  min-width: 0;
  border: 1px solid var(--gkit-border);
  border-radius: 18px;
  background: var(--gkit-card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.gkit-home-card,
.gkit-portfolio-card,
.gkit-solution-card {
  padding: 1.35rem;
}

.gkit-card-number {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--gkit-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.gkit-home-card p,
.gkit-portfolio-card p,
.gkit-solution-card p {
  margin: 0;
  color: var(--gkit-muted);
  line-height: 1.6;
}

.gkit-card-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--gkit-green-dark);
  font-weight: 800;
  text-decoration: none;
}

.gkit-page-hero {
  padding-top: clamp(52px, 7vw, 90px) !important;
  padding-bottom: clamp(44px, 6vw, 72px) !important;
}

.gkit-section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.gkit-app-grid {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
}

.gkit-app-card {
  overflow: hidden;
}

.gkit-app-card-body {
  min-height: 215px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
}

.gkit-app-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  line-height: 1.22;
}

.gkit-app-meta,
.gkit-app-role {
  margin: 0.25rem 0;
  color: var(--gkit-muted);
  line-height: 1.45;
}

.gkit-app-actions {
  margin-top: auto;
  padding-top: 1rem;
}

.gkit-template-version,
.gkit-version,
[data-template-version] {
  display: none !important;
}

footer,
.gkit-footer {
  max-width: 100%;
  overflow-x: hidden;
}

main p,
main li,
main a,
main span,
main div {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .gkit-app-grid,
  .gkit-challenge-grid,
  .gkit-benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .gkit-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  :root {
    --gkit-gutter: 28px;
  }

  .gkit-app-grid,
  .gkit-challenge-grid,
  .gkit-benefit-grid,
  .gkit-solution-grid,
  .gkit-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .gkit-home-hero,
  .gkit-center {
    text-align: left;
  }

  .gkit-center p {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --gkit-gutter: 24px;
  }

  .gkit-app-grid,
  .gkit-challenge-grid,
  .gkit-benefit-grid,
  .gkit-solution-grid,
  .gkit-portfolio-grid {
    grid-template-columns: 1fr !important;
  }

  .gkit-app-card-body {
    min-height: auto;
  }

  .gkit-btn,
  .gkit-app-actions a,
  .gkit-hero-actions a,
  .gkit-home-actions a {
    width: 100%;
  }

  .gkit-home-actions,
  .gkit-hero-actions,
  .gkit-app-actions {
    align-items: stretch;
  }
}
