/**
 * @file home.css — joyus.ai bespoke landing page styles.
 * Self-contained (does not depend on which Tailwind utilities Mercury compiled).
 * Uses brand tokens from brand.css (--brand-gradient, --primary, --foreground…).
 */

.jx { --maxw: 1140px; color: var(--foreground); }
.jx-wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
/* :not(.jx-btn) — a bare `.jx a` outranks `.jx-btn` and overrides the
   button's --primary-foreground with the dark page color (2.18:1, fails AA). */
.jx a:not(.jx-btn) { color: inherit; }
/* outline-offset is load-bearing: --ring ≈ the .jx-btn background, so the
   2px gap of page background is what keeps the ring visible on buttons. */
.jx :focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---- sticky header ---- */
.jx-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, white 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
}
.jx-header .jx-wrap { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.jx-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.jx-brand svg { width: 32px; height: 32px; }
.jx-nav { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; }
.jx-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
/* dim plain nav links only — opacity on the CTA washed it below AA contrast */
.jx-nav a:not(.jx-btn) { opacity: .8; }
.jx-nav a:hover { opacity: 1; }
.jx-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--primary); color: var(--primary-foreground);
  padding: .55rem 1rem; border-radius: 8px; font-weight: 600; font-size: .92rem;
  text-decoration: none; border: 0; cursor: pointer;
}
.jx-btn:hover { filter: brightness(1.08); }
.jx-btn--ghost { background: transparent; color: var(--foreground);
  border: 1px solid color-mix(in oklab, var(--foreground) 22%, transparent); }
@media (max-width: 720px){ .jx-nav a:not(.jx-btn){ display:none; } }

/* ---- hero ---- */
.jx-hero { position: relative; overflow: hidden; padding: 5rem 0 3rem; }
.jx-hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 1.1rem; max-width: 16ch; }
.jx-hero .lede { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.5; max-width: 60ch; opacity: .85; margin: 0 0 1.8rem; }
.jx-cta-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.jx-kicker { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1rem; }
.jx-wave { width: 100%; max-width: 760px; margin: 2.5rem 0 0; opacity: .95; }
.jx-note { font-size: .88rem; opacity: .7; }

/* ---- section scaffolding ---- */
.jx-section { padding: 3.5rem 0; }
.jx-section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.01em; margin: 0 0 .6rem; }
.jx-section .sub { opacity: .8; max-width: 62ch; margin: 0 0 2rem; font-size: 1.05rem; line-height: 1.55; }
.jx-rule { border: 0; height: 4px; border-radius: 2px; background: var(--brand-gradient); width: 64px; margin: 0 0 1.4rem; }

/* ---- quadrant ---- */
.jx-quad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: color-mix(in oklab, var(--foreground) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--foreground) 12%, transparent); border-radius: 14px; overflow: hidden; max-width: 760px; }
.jx-quad div { background: white; padding: 1.4rem 1.5rem; min-height: 130px; }
.jx-quad .hot { background: linear-gradient(135deg, color-mix(in oklab, var(--brand-teal) 12%, white), color-mix(in oklab, var(--brand-violet) 12%, white)); }
.jx-quad h3 { margin: 0 0 .35rem; font-size: 1rem; }
.jx-quad p { margin: 0; font-size: .92rem; opacity: .8; line-height: 1.45; }

/* ---- feature cards ---- */
.jx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.jx-card { border: 1px solid color-mix(in oklab, var(--foreground) 12%, transparent); border-radius: 14px; padding: 1.4rem 1.5rem; background: white; display: flex; flex-direction: column; }
.jx-card h3 { margin: 0 0 .2rem; font-size: 1.18rem; }
.jx-card p { margin: .4rem 0 0; opacity: .82; font-size: .95rem; line-height: 1.5; }
.jx-card .jx-meta { margin-top: auto; padding-top: 1rem; font-size: .9rem; }
.jx-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 999px; }
.jx-tag--open { background: color-mix(in oklab, var(--brand-teal) 16%, white); color: color-mix(in oklab, var(--brand-teal) 75%, black); }
.jx-tag--prop { background: color-mix(in oklab, var(--brand-violet) 14%, white); color: color-mix(in oklab, var(--brand-violet) 78%, black); }
.jx-tag--ea  { background: #fff5d6; color: #7a5b00; }
.jx-card a.jx-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.jx-card a.jx-link:hover { text-decoration: underline; }
.jx-comefind { font-weight: 600; opacity: .7; }

/* ---- honesty strip ---- */
.jx-honesty { background: color-mix(in oklab, var(--brand-indigo) 6%, white); border-block: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent); }
.jx-honesty ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: .8rem 2rem; }
.jx-honesty li { padding-left: 1.4rem; position: relative; line-height: 1.45; opacity: .9; }
.jx-honesty li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ---- footer ---- */
.jx-footer { padding: 2.5rem 0; border-top: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent); font-size: .9rem; opacity: .8; }
.jx-footer .jx-wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }

/* card title links to typed Service pages */
.jx-card h3 a.jx-cardlink{color:inherit;text-decoration:none;}
.jx-card h3 a.jx-cardlink:hover{color:var(--primary);text-decoration:underline;}

/* hero brand glow + gradient headline phrase */
.jx-hero{ background:
  radial-gradient(55% 80% at 90% -15%, color-mix(in oklab, var(--brand-violet) 16%, transparent), transparent 68%),
  radial-gradient(45% 70% at 6% -10%, color-mix(in oklab, var(--brand-teal) 13%, transparent), transparent 66%); }
.jx-grad{ background:var(--brand-gradient); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* content-area links on typed node pages (Docs/About/Terms + service fields) */
.jx main p a, .jx main li a { color: var(--primary); text-decoration: underline; }
.jx main p a:hover, .jx main li a:hover { text-decoration: none; }
