/* The public home page: C4X website style, marketing set. Builds on apidocs.css for the tokens, header, hero, callout and footer. */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { height: 32px; width: 32px; border-radius: 8px; }
.nav-signin { padding: 0.55rem 1.1rem; margin-left: 0.4rem; white-space: nowrap; }
@media (max-width: 980px) { .nav-signin { margin: 0.75rem 0 0; text-align: center; padding: 0.9rem 1rem; } }

/* Hero: text beside the illustration on a wide screen, above it on a phone */
section.hero {
  background: linear-gradient(150deg, var(--c4x-hero-deep) 0%, var(--c4x-hero) 65%, var(--c4x-accent) 190%);
  color: #fff; padding: 4rem 2.25rem; margin: 1.5rem 0 3rem; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 20, 40, 0.32);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2.5rem; align-items: center; max-width: 1280px; margin: 0 auto; }
.hero-content { max-width: 620px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); }
.hero p { color: rgba(255, 255, 255, 0.88); font-size: 1.1rem; max-width: 600px; }
.hero-art img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  section.hero { padding: 2.25rem 1.25rem; border-radius: 14px; margin-top: 1rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
}

/* Sections */
.band { margin: 0 0 3.5rem; }
.band .lead { color: var(--c4x-muted); font-size: 1.05rem; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1.25rem; margin: 1.5rem 0; }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }
article.card { background: var(--c4x-panel-bg); border: 1px solid var(--c4x-border); border-radius: 12px; padding: 1.5rem; transition: box-shadow 0.15s ease, transform 0.15s ease; }
article.card:hover { box-shadow: 0 10px 28px rgba(0, 196, 204, 0.18); transform: translateY(-2px); border-color: rgba(0, 196, 204, 0.35); }
article.card h3 { margin-bottom: 0.4rem; }
article.card p { color: var(--c4x-muted); font-size: 0.94rem; margin: 0; }
.showcase-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.showcase-card { display: grid; grid-template-columns: 56px 1fr; gap: 1.5rem; background: var(--c4x-panel-bg); border: 1px solid var(--c4x-border); border-left: 3px solid var(--c4x-accent); border-radius: 14px; padding: 1.75rem 2rem; }
.showcase-card p { margin: 0; color: var(--c4x-muted); }
.showcase-index { font-family: var(--font-heading); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--c4x-link); opacity: 0.45; }
@media (max-width: 640px) { .showcase-card { grid-template-columns: 1fr; padding: 1.4rem; gap: 0.5rem; } .showcase-index { font-size: 1.3rem; } }
#start .fine { margin: 1.25rem 0 0; }

/* Footer: copyright at the left margin, the social icons in the middle, the privacy link at the right margin. The edges match the page's content (and its callouts). */
footer.site-footer { padding: 2rem 0; margin-top: 2rem; }
.footer-row { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.footer-copy { justify-self: start; }
.footer-social { justify-self: center; display: inline-flex; gap: 0.75rem; }
.footer-privacy { justify-self: end; }
.footer-privacy a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-privacy a:hover { color: #fff; text-decoration: underline; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.85); transition: background 0.15s ease, color 0.15s ease; }
.footer-social-link:hover { background: #fff; color: var(--c4x-hero-deep); }
.footer-social-link svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 640px) { .footer-row { grid-template-columns: 1fr; justify-items: center; text-align: center; } .footer-copy, .footer-social, .footer-privacy { justify-self: center; } }

/* A short list of facts: a term and its explanation side by side, with no card around each */
.fact-list { margin: 1.5rem 0 0; display: grid; grid-template-columns: minmax(11rem, 16rem) 1fr; gap: 0 2rem; }
.fact-list dt, .fact-list dd { margin: 0; padding: 0.9rem 0; border-top: 1px solid var(--c4x-border); }
.fact-list dt { font-family: var(--font-heading); font-weight: 700; }
.fact-list dd { color: var(--c4x-muted); }
@media (max-width: 720px) { .fact-list { grid-template-columns: 1fr; } .fact-list dt { padding-bottom: 0.2rem; } .fact-list dd { border-top: 0; padding-top: 0; } }
