/* Norelyn Learn homepage surfaces. Keep the visual system separate from legacy article styles
   so learning content can evolve without a flag-day rewrite. */

.agent-product {
  --agent-panel: color-mix(in srgb, var(--surface) 82%, transparent);
  --agent-panel-strong: color-mix(in srgb, var(--surface) 94%, transparent);
  --agent-accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
}

.agent-product .site-header {
  border-bottom-color: color-mix(in srgb, var(--line) 82%, transparent);
}

.agent-hero {
  padding: clamp(72px, 10vw, 132px) 0 72px;
}

.agent-hero-grid {
  display: block;
  max-width: 980px;
}

.agent-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.agent-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(50px, 7.3vw, 92px);
  font-weight: 580;
  line-height: .99;
  letter-spacing: -.058em;
}

.agent-hero .agent-lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.78;
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.agent-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--agent-panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.agent-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.agent-button.primary {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: var(--brand-cta-ink);
}


.agent-section {
  padding: 38px 0 86px;
}

.agent-section-head {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.agent-section-head > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.agent-section-head h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.agent-section-head p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

/* The overview begins directly with its four entries, without a redundant heading. */
.agent-section-overview .agent-grid {
  margin-top: 0;
}

.agent-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--agent-panel);
}

.agent-card small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.agent-card h3 {
  margin: 34px 0 0;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.18;
  letter-spacing: -.034em;
}

.agent-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.agent-card .agent-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.agent-library {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
  gap: 18px;
  margin-top: 34px;
}

.agent-library-main,
.agent-library-side {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--agent-panel);
}

.agent-library-main h3,
.agent-library-side h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.03em;
}

.agent-library-main p,
.agent-library-side p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.agent-link-list {
  display: grid;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.agent-link-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.agent-link-list a span:last-child {
  color: var(--muted);
}

.agent-search-wrap {
  margin-top: 30px;
}

.agent-search-wrap .learn-search {
  padding-bottom: 0;
}

.agent-search-wrap .learn-search-help {
  margin-bottom: 0;
}


/* Public site and Norelyn ID account controls remain after Workspace retirement. */
.agent-actions button { cursor: pointer; font: inherit; font-size: 14px; font-weight: 680; }
.agent-actions button:disabled { cursor: not-allowed; opacity: .6; transform: none; }
.agent-actions a:focus-visible,
.agent-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.agent-auth-feedback { margin: 13px 0 0; min-height: 1.5em; color: var(--muted); font-size: 13px; line-height: 1.6; }
.auth-callback-shell { max-width: 760px; padding-top: clamp(90px, 14vw, 170px); padding-bottom: 120px; }
.auth-callback-shell h1 { margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -.048em; }
.auth-callback-shell > p:not(.agent-kicker) { margin-top: 18px; line-height: 1.7; }

@media (max-width: 860px) {
  .agent-library { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .agent-hero { padding-top: 58px; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-section-head { grid-template-columns: 1fr; gap: 10px; }
  .agent-card { min-height: 0; }
}
