/*
  Library screens: the 42 screens on Figma page "12 · Screens — Native" that were converted from the
  design source "missing-screens-v2026-09-29" (layer names "Web / ms / …").
  The prototype's own palette (--bg, --panel, --gold2, --blue2, …) is mapped onto the R2.1 tokens:
    bg→bg/primary · bg2→bg/secondary · panel→bg/card · panel2→bg/card-hover · ink→text/primary
    muted→text/secondary · gold→accent/gold · gold2→accent/gold-light · blue→accent/energy
    blue2→accent/energy-light · line→border/line · soft→bg/soft
  Type below 11px in the source is raised to 11–13px for legibility (recorded in site/README.md).
*/

/* ---------- Shared bits ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--aw-border-line);
  border-radius: var(--aw-radius-full);
  background: color-mix(in srgb, var(--aw-bg-card) 82%, transparent);
  color: var(--aw-text-energy);
  font: 500 11px/1.3 var(--aw-font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.actions { display: flex; flex-wrap: wrap; gap: 11px; }
.actions--center { justify-content: center; }

.panel {
  border: 1px solid var(--aw-border-line);
  border-radius: var(--aw-radius-md);
  background: var(--aw-bg-card);
}

/* ---------- Marketing family (faq, resources, partners, careers) ---------- */
.lib-hero {
  position: relative;
  min-height: 675px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.lib-hero__art {
  position: absolute;
  inset: 0 0 0 35%;
  opacity: 0.9;
  filter: saturate(0.86);
}
.lib-hero__art img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .lib-hero__art { -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
}
:root[data-theme="light"] .lib-hero__art { opacity: 0.48; filter: saturate(0.55) contrast(0.95); }
.lib-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--aw-bg-primary) 0%, color-mix(in srgb, var(--aw-bg-primary) 90%, transparent) 40%, color-mix(in srgb, var(--aw-bg-primary) 20%, transparent) 80%),
    linear-gradient(0deg, var(--aw-bg-primary) 0%, transparent 30%);
}
.lib-hero > .wrap { position: relative; z-index: 2; padding-block: var(--aw-space-14); }
.lib-hero__copy { max-width: 690px; }
.lib-hero__copy h1 { margin: 19px 0 22px; }
.lib-hero__copy h1 em { font-family: var(--aw-font-literary); font-weight: 400; font-style: italic; color: var(--aw-accent-gold-light); }
.lib-hero__lead { max-width: 650px; color: var(--aw-text-secondary); }
.lib-hero .pill-row { margin: 27px 0 28px; }
.lib-hero__lead + .actions { margin-top: 28px; }   /* no pill row (a release leaves unverified counts out) */

.metric-strip { position: relative; z-index: 3; margin-top: -56px; }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--aw-bg-card);
  border: 1px solid var(--aw-border-line);
  border-radius: var(--aw-radius-md);
  box-shadow: var(--aw-shadow-panel);
}
.metric { padding: 25px 29px; border-right: 1px solid var(--aw-border-line); }
.metric:last-child { border-right: 0; }
.metric b { display: block; font: 700 24px/1.25 var(--aw-font-display); color: var(--aw-accent-gold-light); }

.lib-section { padding-block: 92px; border-bottom: 1px solid var(--aw-border-line); }
.lib-section--alt { background: var(--aw-bg-secondary); }
.section-head {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: var(--aw-space-20);
  align-items: end;
  margin-bottom: 38px;
}
.section-head h2 { margin: 8px 0 0; }
.section-head > p { color: var(--aw-text-secondary); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.lib-card {
  position: relative;
  min-height: 245px;
  padding: 29px 27px 27px;
  overflow: hidden;
  border: 1px solid var(--aw-border-line);
  border-radius: var(--aw-radius-md);
  background: linear-gradient(145deg, var(--aw-bg-card), color-mix(in srgb, var(--aw-bg-card-hover) 70%, transparent));
}
.lib-card::after {
  content: "";
  position: absolute;
  width: 110px; height: 110px;
  right: -45px; bottom: -55px;
  border: 1px solid var(--aw-border-line);
  border-radius: 50%;
}
.lib-card__index { font: 400 11px/1.4 var(--aw-font-display); letter-spacing: 0.14em; color: var(--aw-accent-gold-light); }
.lib-card__icon { position: absolute; top: 18px; right: 27px; width: 52px; height: 52px; object-fit: contain; }
.lib-card h3 { margin: 34px 0 12px; padding-right: 60px; }
.lib-card p { color: var(--aw-text-secondary); font-size: 13px; line-height: 1.62; }
.lib-card__tag { display: block; margin-top: 16px; font: 700 11px/1.4 var(--aw-font-body); color: var(--aw-text-energy); }

.feature { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; align-items: stretch; }
.feature-main, .feature-side {
  border: 1px solid var(--aw-border-line);
  border-radius: 9px;
  background: var(--aw-bg-card);
  overflow: hidden;
}
.feature-visual { position: relative; height: 370px; }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--aw-bg-card), transparent 60%); }
.feature-copy { padding: 34px; }
.feature-copy h2, .feature-copy h3 { margin: 7px 0 14px; }
.feature-copy p:not(.t-eyebrow) { color: var(--aw-text-secondary); font-size: 14px; line-height: 1.6; }
.feature-side { display: grid; gap: 10px; padding: 20px; list-style: none; margin: 0; }
.feature-row {
  padding: 19px;
  border: 1px solid var(--aw-border-line);
  border-radius: 6px;
  background: var(--aw-bg-secondary);
}
.feature-row span { display: block; margin-top: 7px; color: var(--aw-text-secondary); font-size: 13px; line-height: 1.5; }

.closing {
  padding: 90px var(--aw-gutter);
  text-align: center;
  background: radial-gradient(circle at 50% 30%, var(--aw-bg-soft), transparent 35%), var(--aw-bg-primary);
}
.closing__mark { width: 90px; height: 90px; margin: 0 auto 14px; }
.closing h2 { max-width: 900px; margin: 18px auto 12px; }
.closing > p:not(.t-eyebrow) { color: var(--aw-text-secondary); }
.closing .actions { margin-top: 28px; }

/* Responsive */
@media (max-width: 1023px) {
  .lib-hero { min-height: 0; }
  .lib-hero__art { inset: 0; opacity: 0.4; }
  :root[data-theme="light"] .lib-hero__art { opacity: 0.22; }
  .lib-hero > .wrap { padding-block: var(--aw-space-16) 110px; }
  .section-head, .feature { grid-template-columns: 1fr; gap: var(--aw-space-4); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib-section { padding-block: var(--aw-space-16); }
}
@media (max-width: 767px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--aw-border-line); padding: 18px 22px; }
  .metric:last-child { border-bottom: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .lib-card { min-height: 0; }
  .feature-visual { height: 240px; }
  .feature-copy { padding: 24px; }
  .closing { padding-block: var(--aw-space-16); }
}

/* Screen index (dist/index.html, generated by tools/build.mjs) */
.screen-index { padding-block: var(--aw-space-16) var(--aw-space-20); display: grid; gap: var(--aw-space-4); }
.screen-index .table-card { margin-top: var(--aw-space-6); }
.screen-index .table td a { color: var(--aw-accent-gold-light); text-decoration: underline; text-underline-offset: 3px; }
