/*
 * www.geniete.com page styles.
 *
 * Brand tokens and the shared header/footer chrome come from
 * ./brand/geniete.css (gf-geniete-brand). This file only styles what is
 * unique to the hub page: the hero, the meaning cards, the service
 * grid, and the error page.
 */

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--gt-paper);
}

body {
  margin: 0;
  color: var(--gt-ink);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--gt-paper) 68%, #eef7f4 100%),
    var(--gt-paper);
  font-family: var(--gt-sans);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-column {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 34px;
  padding: 68px 0 48px;
  overflow: hidden;
  border-top: 1px solid var(--gt-line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gt-teal), var(--gt-blue), var(--gt-red));
}

.hero-genie {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  width: min(300px, 34vw);
  height: auto;
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
}

.hero-copy,
.meaning {
  position: relative;
  z-index: 1;
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--gt-teal);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.pronounce {
  margin: -10px 0 14px;
  color: var(--gt-muted);
  font-size: 0.95rem;
  font-style: italic;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--gt-green-black);
  font-family: var(--gt-serif);
  font-size: 6.6rem;
  line-height: 0.95;
}

h2 {
  margin-bottom: 12px;
  color: var(--gt-green-black);
  font-size: 1.35rem;
  line-height: 1.2;
}

.lede {
  max-width: 640px;
  margin-bottom: 0;
  color: #273832;
  font-size: 1.35rem;
}

.meaning {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 10px;
}

.meaning p {
  min-height: 132px;
  margin-bottom: 0;
  padding: 24px;
  border: 1px solid var(--gt-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--gt-muted);
  box-shadow: 0 12px 36px rgba(16, 19, 18, 0.06);
  backdrop-filter: blur(14px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0 22px;
}

.service-card,
.notes {
  border: 1px solid var(--gt-line);
  border-radius: 8px;
  background: var(--gt-surface);
  box-shadow: var(--gt-shadow);
}

.service-card {
  min-height: 294px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
}

.service-card::before {
  content: "";
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: var(--gt-blue);
}

.service-card.account-card::before {
  background: var(--gt-teal);
}

.service-card:nth-child(3)::before {
  background: var(--gt-red);
}

.service-card p:not(.card-kicker),
.notes p {
  color: var(--gt-muted);
}

.service-card .gt-button {
  align-self: flex-start;
}

.account-card {
  border-color: rgba(15, 118, 110, 0.28);
  background:
    linear-gradient(180deg, var(--gt-soft-teal), #ffffff 58%),
    var(--gt-surface);
}

.service-card:nth-child(2) {
  background:
    linear-gradient(180deg, var(--gt-soft-blue), #ffffff 58%),
    var(--gt-surface);
}

.service-card:nth-child(3) {
  background:
    linear-gradient(180deg, var(--gt-soft-red), #ffffff 58%),
    var(--gt-surface);
}

.notes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 22px 0 48px;
  padding: 30px;
}

.notes p {
  max-width: 740px;
  margin-bottom: 0;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.error-shell {
  width: min(560px, calc(100% - 40px));
  padding: 36px;
  border: 1px solid var(--gt-line);
  border-radius: 8px;
  background: var(--gt-surface);
  box-shadow: var(--gt-shadow);
}

.error-shell h1 {
  margin-top: 34px;
  font-size: 2.4rem;
}

@media (max-width: 920px) {
  h1 {
    font-size: 5rem;
  }

  .hero-genie {
    width: min(220px, 32vw);
  }

  .meaning,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .meaning p {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .page-column {
    width: min(100% - 28px, 1160px);
  }

  .notes {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 0;
    padding: 46px 0 38px;
  }

  .hero-genie {
    position: static;
    transform: none;
    width: 150px;
    margin-bottom: -10px;
  }

  h1 {
    font-size: 3.9rem;
  }

  .lede {
    font-size: 1.16rem;
  }

  .meaning p,
  .service-card,
  .notes,
  .error-shell {
    padding: 22px;
  }

  .gt-button {
    width: 100%;
  }
}

/* ── Agent Tools card (GenieTé MCP, 2026-07-23) ──────────────────── */
.service-card.tool-card::before {
  background: var(--gt-green-black);
}
