/* Hallmark - pre-emit critique: P4 H5 E4 S5 R4 V4 - Tagify homepage redesign */
/* Digital keyring: Tagify green, cool paper, product-first hero */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Grotesk:wght@500;600;700&display=swap");

html,
body.tg-home {
  overflow-x: clip;
}

body.tg-home {
  --tg-bg: #eef3ef;
  --tg-paper: #f7faf8;
  --tg-ink: #102018;
  --tg-muted: #5a6b60;
  --tg-line: #d5e0d8;
  --tg-brand: #00a551;
  --tg-brand-deep: #004d40;
  --tg-on-brand: #f4fff8;
  --tg-font: "DM Sans", system-ui, sans-serif;
  --tg-display: "Space Grotesk", system-ui, sans-serif;
  --tg-wrap: min(1120px, calc(100% - 2rem));
  background: var(--tg-bg);
  color: var(--tg-ink);
  font-family: var(--tg-font);
}

body.tg-home .navbar {
  background: rgba(247, 250, 248, 0.94) !important;
  border-bottom: 1px solid var(--tg-line);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

body.tg-home .navbar-brand img {
  height: 44px;
  max-width: 168px;
  object-fit: contain;
  object-position: left center;
  padding: 4px 2px;
}

body.tg-home .tagify-footer .footer-logo img {
  height: 44px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  object-position: left center;
  padding: 4px;
  box-sizing: border-box;
}

body.tg-home .nav-link:hover,
body.tg-home .nav-link:focus-visible {
  color: var(--tg-brand) !important;
}

body.tg-home .btn-primary,
body.tg-home a.btn-primary {
  background-color: var(--tg-brand) !important;
  border-color: var(--tg-brand) !important;
  color: var(--tg-on-brand) !important;
}

body.tg-home .btn-primary:hover,
body.tg-home .btn-primary:focus-visible,
body.tg-home a.btn-primary:hover,
body.tg-home a.btn-primary:focus-visible {
  background-color: var(--tg-brand-deep) !important;
  border-color: var(--tg-brand-deep) !important;
  color: var(--tg-on-brand) !important;
}

body.tg-home .btn-outline-primary,
body.tg-home a.btn-outline-primary {
  color: var(--tg-brand-deep) !important;
  border-color: var(--tg-brand) !important;
  background: transparent !important;
}

body.tg-home .btn-outline-primary:hover,
body.tg-home .btn-outline-primary:focus-visible,
body.tg-home a.btn-outline-primary:hover,
body.tg-home a.btn-outline-primary:focus-visible {
  background: rgba(0, 165, 81, 0.1) !important;
  color: var(--tg-brand-deep) !important;
  border-color: var(--tg-brand-deep) !important;
}

.tg-main {
  padding: 0 0 3.5rem;
}

.tg-wrap {
  width: var(--tg-wrap);
  margin-inline: auto;
}

.tg-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(1.75rem, 5vw, 3.5rem) 0 2.25rem;
}

.tg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(0, 165, 81, 0.18), transparent 60%),
    linear-gradient(180deg, #102018 0%, #1a3a2c 48%, var(--tg-bg) 100%);
}

.tg-hero__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}

.tg-hero__brand {
  margin: 0 0 0.55rem;
  font-family: var(--tg-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #f4fff8;
  overflow-wrap: anywhere;
}

.tg-hero h1 {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  font-family: var(--tg-display);
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #e8f5ec;
  overflow-wrap: anywhere;
}

.tg-hero h1 span {
  color: #7ddea0;
}

.tg-hero__lead {
  margin: 0 0 1.35rem;
  max-width: 38ch;
  color: #b7cfc0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.tg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tg-btn:hover,
.tg-btn:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
}

.tg-btn--brand {
  background: var(--tg-brand);
  color: var(--tg-on-brand);
}

.tg-btn--brand:hover,
.tg-btn--brand:focus-visible {
  background: #089a4c;
  color: var(--tg-on-brand);
}

.tg-btn--ghost {
  background: transparent;
  border-color: rgba(244, 255, 248, 0.35);
  color: #f4fff8;
}

.tg-btn--ghost:hover,
.tg-btn--ghost:focus-visible {
  border-color: #f4fff8;
  color: #f4fff8;
  background: rgba(244, 255, 248, 0.08);
}

.tg-btn--ink {
  background: var(--tg-ink);
  color: #f4fff8;
}

.tg-btn--ink:hover,
.tg-btn--ink:focus-visible {
  background: #1a3326;
  color: #f4fff8;
}

.tg-btn--line {
  background: var(--tg-paper);
  border-color: var(--tg-line);
  color: var(--tg-ink);
}

.tg-btn--line:hover,
.tg-btn--line:focus-visible {
  border-color: var(--tg-brand);
  color: var(--tg-brand-deep);
}

.tg-hero__visual {
  min-width: 0;
  position: relative;
}

.tg-hero__visual img {
  display: block;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(244, 255, 248, 0.12);
  background: #0c1a14;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.tg-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  color: #9eb5a8;
  font-size: 0.92rem;
}

.tg-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tg-trust i {
  color: #7ddea0;
}

.tg-section {
  margin-top: 2.75rem;
}

.tg-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.tg-section__head h2 {
  margin: 0;
  font-family: var(--tg-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.tg-section__head a {
  color: var(--tg-brand-deep);
  font-weight: 600;
  text-decoration: none;
}

.tg-section__head a:hover,
.tg-section__head a:focus-visible {
  color: var(--tg-brand);
  text-decoration: underline;
}

.tg-lead {
  margin: 0 0 1.25rem;
  max-width: 56ch;
  color: var(--tg-muted);
  line-height: 1.55;
}

.tg-paths {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-path {
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--tg-line);
  border-radius: 16px;
  background: var(--tg-paper);
  min-width: 0;
}

.tg-path h3 {
  margin: 0 0 0.4rem;
  font-family: var(--tg-display);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: normal;
}

.tg-path p {
  margin: 0 0 1rem;
  color: var(--tg-muted);
  line-height: 1.5;
}

.tg-steps {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: tgstep;
}

.tg-step {
  position: relative;
  min-width: 0;
  padding: 1.2rem 1.1rem 1.15rem;
  border: 1px solid var(--tg-line);
  border-radius: 16px;
  background: var(--tg-paper);
}

.tg-step::before {
  counter-increment: tgstep;
  content: counter(tgstep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: var(--tg-brand);
  color: var(--tg-on-brand);
  font-family: var(--tg-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.tg-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-style: normal;
}

.tg-step p {
  margin: 0;
  color: var(--tg-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.tg-split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--tg-line);
  background: var(--tg-paper);
}

.tg-split img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--tg-line);
  background: #fff;
  object-fit: contain;
}

.tg-split h2 {
  margin: 0 0 0.5rem;
  font-family: var(--tg-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 600;
  font-style: normal;
}

.tg-split ul {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.tg-split li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.25rem;
  color: var(--tg-muted);
  line-height: 1.45;
}

.tg-split li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--tg-brand);
}

.tg-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem;
  border: 1px solid var(--tg-line);
  border-radius: 16px;
  background: var(--tg-paper);
}

.tg-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  object-position: center;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--tg-line);
  background: #eef1f6;
}

.tg-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  font-style: normal;
  overflow-wrap: anywhere;
}

.tg-card p {
  margin: 0;
  color: var(--tg-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.tg-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tg-programs {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-program {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid var(--tg-line);
  border-radius: 14px;
  background: #fff;
}

.tg-program img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--tg-line);
  background: #eef1f6;
}

.tg-program h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  font-style: normal;
  overflow-wrap: anywhere;
}

.tg-cta {
  margin-top: 2.75rem;
  padding: 1.5rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #102018, #1a3a2c);
  color: #e8f5ec;
  text-align: center;
}

.tg-cta h2 {
  margin: 0 0 0.5rem;
  font-family: var(--tg-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  font-style: normal;
  color: #f4fff8;
}

.tg-cta p {
  margin: 0 auto 1.15rem;
  max-width: 48ch;
  color: #b7cfc0;
}

.tg-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.tg-ad {
  margin-top: 2.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--tg-line);
  border-bottom: 1px solid var(--tg-line);
  background: #f3f6f4;
}

.tg-ad__inner {
  width: var(--tg-wrap);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.tg-ad .ee-slot {
  width: min(100%, 728px);
}

.tg-ad__note {
  margin: 0;
  color: var(--tg-muted);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .tg-hero__grid,
  .tg-split,
  .tg-paths,
  .tg-steps,
  .tg-grid,
  .tg-programs {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .tg-hero__actions .tg-btn,
  .tg-cta__actions .tg-btn,
  .tg-path .tg-btn {
    width: 100%;
  }
}
