/* Roots & Genes Foundation landing page. Colours from the logo: blue badge, green and blue strands, pink and yellow leaves. */
:root {
  --blue: #2b6fe0;
  --blue-deep: #1d4fa8;
  --green: #6fb43f;
  --green-deep: #3f7d1c;
  --pink: #e85d9f;
  --yellow: #f5c542;
  --ink: #142033;
  --muted: #4a5568;
  --line: #dfe5ee;
  --soft: #f3f7fc;
  --white: #ffffff;
  --radius: 18px;
  /* The App downloads panel reads these (apps.css). */
  --uzj-accent: var(--blue);
  --uzj-on-accent: #ffffff;
  --uzj-ink: var(--ink);
  --uzj-surface: #ffffff;
  --uzj-line: var(--line);
  --uzj-font: inherit;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--blue); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); }

.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn--lg { padding: 14px 26px; font-size: 1.05rem; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn--green { background: var(--green-deep); color: #fff; }
.btn--line { border-color: var(--blue); color: var(--blue-deep); background: transparent; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 12px; }
.brand__name { font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.brand__name small { display: block; font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }

.hero { background: linear-gradient(160deg, #eef5ff 0%, #f6fbef 55%, #fff6fb 100%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.appcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 18px 40px rgba(20, 32, 51, .1); border-top: 6px solid var(--green); }
.appcard__title { font-size: 1.35rem; margin-bottom: .3em; }
.appcard__text { color: var(--muted); font-size: .95rem; }
.appcard__soon { margin: 0; padding: 14px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: .95rem; }
/* The panel inside the card: its own heading is the card's, and its QR code is shown large. */
.appcard [data-app-downloads-slot] .uzj-apps .uzj-apps-box { border: 0; padding: 0; }
/* The card already names it and says how: the panel's own toggle and hint would repeat that (app-panel.js keeps it open). */
.appcard [data-app-downloads-slot] .uzj-apps .uzj-apps-sum,
.appcard [data-app-downloads-slot] .uzj-apps .uzj-apps-hint { display: none; }
.appcard [data-app-downloads-slot] .uzj-apps .uzj-apps-qr { width: 180px; height: 180px; border: 1px solid var(--line); }
.appcard [data-app-downloads-slot] .uzj-apps .uzj-apps-list { max-height: none; }

.band { background: var(--blue); color: #fff; padding: 56px 0; }
.band .eyebrow { color: var(--yellow); }
.band .lead { color: #e8f0ff; }
.section { padding: 64px 0; }
.section--soft { background: var(--soft); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 6px solid var(--blue); }
.card--green { border-top-color: var(--green); }
.card--pink { border-top-color: var(--pink); }
.card p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.points { list-style: none; margin: 0; padding: 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.dot { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; margin-top: .4em; }
.dot--green { background: var(--green); } .dot--blue { background: var(--blue); } .dot--pink { background: var(--pink); } .dot--yellow { background: var(--yellow); }

.foot { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); }
.foot__in { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot__in p { margin: 0; }
.foot__small { margin-left: auto !important; font-size: .9rem; }

@media (max-width: 900px) {
  .hero__in, .split { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .hero__in { padding-top: 36px; padding-bottom: 44px; gap: 28px; }
  .foot__small { margin-left: 0 !important; }
}
@media (max-width: 420px) {
  .top .btn { padding: 9px 14px; font-size: .9rem; }
  .brand__name { font-size: 1rem; }
  .appcard [data-app-downloads-slot] .uzj-apps .uzj-apps-item { flex-direction: column; }
}
