/* GKIT live hotfix 2026-07-16
   Purpose: fix public layout, buttons, cards and remove visual template feel.
*/

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

/* Global page structure */
.gkit-main .gkit-container,
main .gkit-container,
.gkit-container {
  width: min(var(--gkit-hotfix-container), calc(100% - var(--gkit-hotfix-gutter)));
  margin-left: auto;
  margin-right: auto;
}

.gkit-main,
main.gkit-main {
  color: var(--gkit-hotfix-ink);
}

.gkit-section {
  padding: clamp(44px, 6vw, 78px) 0;
}

.gkit-page-hero {
  padding-top: clamp(44px, 7vw, 86px);
  padding-bottom: clamp(36px, 5vw, 62px);
}

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

.gkit-eyebrow,
.gkit-app-kicker {
  color: var(--gkit-hotfix-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gkit-lead {
  max-width: 780px;
  color: var(--gkit-hotfix-muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

/* Buttons */
.gkit-btn,
.gkit-app-actions a,
.gkit-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.1;
  text-decoration: none !important;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.gkit-btn:hover,
.gkit-app-actions a:hover,
.gkit-hero-actions a:hover {
  transform: translateY(-1px);
}

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

.gkit-btn-primary:hover,
.gkit-app-actions a:first-child:hover,
.gkit-hero-actions a:first-child:hover {
  background: var(--gkit-hotfix-green-dark);
}

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

/* Apps page */
.gkit-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.gkit-app-card {
  border: 1px solid var(--gkit-hotfix-border);
  border-radius: 18px;
  background: var(--gkit-hotfix-surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

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

.gkit-app-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.24rem;
  line-height: 1.25;
  color: var(--gkit-hotfix-ink);
}

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

.gkit-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1rem;
}

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

/* CTA/footer cleanup */
.gkit-footer,
footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

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

/* Responsive */
@media (max-width: 1180px) {
  .gkit-app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

  .gkit-page-hero {
    padding-top: 34px;
  }
}

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

  .gkit-app-grid {
    grid-template-columns: 1fr;
  }

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

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

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