/* ============================================================
   RosterOS graphics — shared light "app" components (graphics plan,
   rosteros-sales/ai-visibility/graphics-plan-2026-09.md).

   One file for every light component, pass 1 and pass 2 alike, loaded by
   index, recruit and retain. The state tokens below are defined here and
   nowhere else (styles.css no longer carries a copy).
   State palette: gold = ready, green = sent/done, amber = waiting,
   red = risk, navy = info. Brand stays navy / gold / cream.
   ============================================================ */
:root {
  --app-canvas: #FAF4E9;
  --app-surface: #FFFFFF;
  --app-ink: #0B1D33;
  --app-ink-soft: #3D4E63;
  --app-muted: #7A8797;
  --app-line: rgba(11, 29, 51, 0.10);
  --app-gold: #B9872C;
  --app-gold-soft: rgba(185, 135, 44, 0.14);
  --app-ok: #1F7A4D;      --app-ok-soft: #DFF3E7;
  --app-warn: #B45309;    --app-warn-soft: #FCEFD6;
  --app-risk: #B3261E;    --app-risk-soft: #F9E0DD;
  --app-navy-soft: #E4E9F0;
  --g-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.appcard {
  background: var(--app-canvas); color: var(--app-ink);
  border-radius: 14px; padding: 16px 18px 14px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(11, 29, 51, 0.06);
  font-size: 13px; line-height: 1.45;
}
.appbtn {
  display: inline-block; font-size: 12.5px; font-weight: 700; padding: 8px 14px;
  border-radius: 8px; background: var(--app-gold); color: #fff; white-space: nowrap;
}
.appbtn--sm { padding: 6px 11px; font-size: 12px; }
.appbtn--ghost { background: transparent; color: var(--app-ink-soft); border: 1px solid var(--app-line); font-weight: 600; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff;
}
.avatar--a { background: #0B1D33; } .avatar--b { background: #3D4E63; } .avatar--c { background: #B9872C; } .avatar--d { background: #1F7A4D; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.pill--ok { background: var(--app-ok-soft); color: var(--app-ok); }
.pill--warn { background: var(--app-warn-soft); color: var(--app-warn); }
.pill--risk { background: var(--app-risk-soft); color: var(--app-risk); }
.pill--navy { background: var(--app-navy-soft); color: var(--app-ink); }
.pill--gold { background: var(--app-gold-soft); color: var(--app-gold); }
.g-caption {
  margin: 14px 0 0; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(250, 249, 247, 0.48); text-align: center;
}

/* ---- Pass 1 (index): hero figure + morning card, the light app frame ---
   Moved here from styles.css on 2026-09-06 so one file owns every light
   component and the state tokens are defined once. ---------------------- */
/* Hero: copy left, founder + morning card right */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero__copy { min-width: 0; }
/* The card hangs off the photo's bottom-left corner — over the suit, never the
   face (owner 2026-09-06: "looks a little funny over my face"). The figure
   carries bottom margin so the overhang never collides with the stats strip. */
.hero__figure { position: relative; max-width: 460px; margin-left: auto; margin-bottom: 56px; }
.hero__photo {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(250, 249, 247, 0.08);
}
.hero__float { position: absolute; left: -44px; bottom: -48px; width: 296px; }

.appcard__eyebrow {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--app-gold); margin-bottom: 10px;
}
.appcard__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--app-gold); box-shadow: 0 0 0 3px var(--app-gold-soft); }
.appcard__big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.appcard__big > span:first-child { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.appcard__big-l { font-size: 13px; color: var(--app-ink-soft); font-weight: 500; }
.appcard__line { color: var(--app-ink-soft); margin-bottom: 12px; }
.appcard__line strong { color: var(--app-ink); font-weight: 700; }
.appcard__cta { display: flex; align-items: center; gap: 10px; }
.appcard__time { font-size: 12px; color: var(--app-muted); }

/* The light app frame */
.section--board { padding-top: calc(var(--section-pad-y) * 0.8); }
.appframe {
  margin-top: 40px;
  background: var(--app-canvas); color: var(--app-ink);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(250, 249, 247, 0.06);
  font-size: 13px; line-height: 1.45;
}
.appframe__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 16px; background: #F2EADB; border-bottom: 1px solid var(--app-line);
}
.appframe__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(11, 29, 51, 0.18); }
.appframe__addr {
  margin-left: 10px; padding: 4px 12px; font-size: 11.5px; color: var(--app-muted);
  background: var(--app-surface); border-radius: 99px; border: 1px solid var(--app-line);
}
.appframe__day { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--app-ink-soft); }
.appframe__body { padding: 22px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 12px; padding: 14px 16px; }
.kpi__icon {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; margin-bottom: 10px;
}
.kpi__icon--gold { background: var(--app-gold-soft); color: var(--app-gold); }
.kpi__icon--ok { background: var(--app-ok-soft); color: var(--app-ok); }
.kpi__icon--warn { background: var(--app-warn-soft); color: var(--app-warn); }
.kpi__icon--navy { background: var(--app-navy-soft); color: var(--app-ink); }
.kpi__label { font-size: 12px; color: var(--app-muted); }
.kpi__value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-top: 2px; }
.kpi__sub { font-size: 11.5px; color: var(--app-muted); margin-top: 4px; }

.board-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; }
.board-panel { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 12px; padding: 16px 18px; }
.board-panel__h {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--app-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.board-panel__hint { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--app-muted); }

.goal + .goal { margin-top: 12px; }
.goal__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.goal__name { font-size: 13px; font-weight: 600; }
.goal__num { font-size: 12px; color: var(--app-muted); }
.goal__track { height: 7px; background: #EEE6D6; border-radius: 99px; overflow: hidden; }
.goal__fill { height: 100%; border-radius: 99px; background: var(--app-gold); transition: width .8s var(--ease-out); }
.goal__fill.is-met { background: var(--app-ok); }

.arow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--app-line); }
.arow:first-of-type { border-top: 0; padding-top: 0; }
.arow--more { font-size: 12px; color: var(--app-muted); padding-bottom: 0; }
.arow__who { min-width: 0; flex: 1; }
.arow__name { font-size: 13.5px; font-weight: 600; }
.arow__sub { font-size: 12px; color: var(--app-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__figure { margin: 0 auto 64px; max-width: 420px; }
  .hero__float { left: 12px; bottom: -44px; width: min(296px, calc(100% - 24px)); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .board-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .appframe__body { padding: 14px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 12px; }
  .kpi__value { font-size: 24px; }
  .arow .pill { display: none; }
}

/* ---- S3: Engine card — sparkline + "while you slept" ------------------ */
.spark { display: inline-flex; align-items: center; gap: 10px; }
.spark__label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250, 249, 247, 0.48); }
.spark svg { width: 160px; height: 34px; display: block; overflow: visible; }
.spark__area { fill: rgba(212, 165, 116, 0.16); }
.spark__line { fill: none; stroke: #D4A574; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark__dot { fill: #E5BE92; }
.engine__night {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline;
  margin: 0 0 26px; padding: 14px 16px;
  background: rgba(212, 165, 116, 0.07); border: 1px solid rgba(212, 165, 116, 0.22);
  border-radius: 10px; font-size: 13px; color: rgba(250, 249, 247, 0.72);
}
.engine__night-k { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #D4A574; flex-basis: 100%; }
.engine__night strong { color: #FAF9F7; font-weight: 600; }
.engine__night .is-zero strong { color: #6FCF97; }

/* ---- S4: the give-first ladder --------------------------------------- */
.ladder { position: relative; margin: 40px 0 8px; }
.ladder__track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; position: relative; }
.ladder__track::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 22px; height: 1px;
  background: linear-gradient(90deg, rgba(212,165,116,.15), rgba(212,165,116,.6), rgba(212,165,116,.15));
}
.ladder__node { position: relative; padding-top: 44px; }
.ladder__when {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #1A1F2E; border: 1px solid rgba(212,165,116,.5); color: #E5BE92;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-align: center; line-height: 1.05;
}
.ladder__node--ask .ladder__when { background: #B9872C; border-color: #E5BE92; color: #fff; }
.ladder__card { margin-top: 10px; min-height: 148px; display: flex; flex-direction: column; gap: 8px; }
.ladder__card .appcard { padding: 12px 13px 11px; box-shadow: 0 14px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(11,29,51,.06); flex: 1; }
.ladder__node--ask .appcard { box-shadow: 0 14px 30px rgba(0,0,0,.35), 0 0 0 2px #B9872C; }
.ladder__ch { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 7px; }
.ladder__msg { font-size: 12.5px; line-height: 1.45; color: var(--app-ink); }
.ladder__msg em { font-style: normal; color: var(--app-ink-soft); }
.ladder__foot { font-size: 11px; color: var(--app-muted); margin-top: 8px; display: flex; justify-content: space-between; }
.ladder__legend { display: flex; gap: 18px; justify-content: center; margin-top: 18px; font-size: 12px; color: rgba(250,249,247,.6); }
.ladder__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.ladder__legend .l-give::before { background: #1A1F2E; border: 1px solid rgba(212,165,116,.6); }
.ladder__legend .l-ask::before { background: #B9872C; }

/* ---- S5: the Vault intent card (phone + card) ------------------------- */
.give { display: grid; grid-template-columns: minmax(150px, 190px) 32px minmax(0, 1fr); gap: 0; align-items: center; }
.phone {
  background: #0B1D33; border-radius: 26px; padding: 10px; box-shadow: 0 22px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(250,249,247,.08);
}
.phone__screen { background: var(--app-canvas); border-radius: 18px; padding: 14px 12px 16px; min-height: 250px; color: var(--app-ink); font-size: 11.5px; }
.phone__bar { display: flex; justify-content: space-between; font-size: 10px; color: var(--app-muted); margin-bottom: 14px; }
.phone__k { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-gold); margin-bottom: 6px; }
.phone__title { font-size: 14px; font-weight: 700; line-height: 1.2; margin-bottom: 6px; }
.phone__sub { color: var(--app-ink-soft); font-size: 11px; line-height: 1.4; margin-bottom: 12px; }
.phone__btn { display: block; text-align: center; background: var(--app-gold); color: #fff; font-weight: 700; padding: 8px; border-radius: 8px; font-size: 11.5px; }
.phone__meta { margin-top: 12px; font-size: 10.5px; color: var(--app-muted); }
.give__arrow { display: grid; place-items: center; color: #D4A574; font-size: 18px; }
.intent .intent__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.intent__name { font-size: 13.5px; font-weight: 700; }
.intent__sub { font-size: 11.5px; color: var(--app-muted); }
.intent__signal { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.intent__draft { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; color: var(--app-ink); margin-bottom: 10px; }
.intent__actions { display: flex; align-items: center; gap: 8px; }
.intent__note { margin-left: auto; font-size: 11px; color: var(--app-muted); }

/* ---- S6: retention stack -------------------------------------------- */
.stack { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: center; margin: 28px 0 8px; }
/* Fanned so each card's name row and kind pill stay readable under the next. */
.stack__fan { position: relative; height: 340px; }
.stackcard {
  position: absolute; left: 0; right: 0; margin: 0 auto; width: min(100%, 360px);
  transform-origin: 50% 100%;
}
.stackcard--1 { top: 0; transform: rotate(-3deg) translateX(-30px); z-index: 1; }
.stackcard--2 { top: 78px; transform: rotate(1deg); z-index: 2; }
.stackcard--3 { top: 156px; transform: rotate(3.5deg) translateX(30px); z-index: 3; }
.stackcard .appcard { box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(11,29,51,.06); }
.stackcard__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.stackcard__who { flex: 1; min-width: 0; }
.stackcard__name { font-size: 13px; font-weight: 700; }
.stackcard__sub { font-size: 11px; color: var(--app-muted); }
.stackcard__msg { font-size: 12.5px; line-height: 1.45; color: var(--app-ink); }
.stackcard__foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 11px; color: var(--app-muted); }
.stack__tile { background: rgba(212,165,116,.07); border: 1px solid rgba(212,165,116,.22); border-radius: 12px; padding: 18px 20px; color: rgba(250,249,247,.72); font-size: 13.5px; }
.stack__tile-k { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #D4A574; margin-bottom: 10px; }
.stack__tile-n { font-size: 34px; font-weight: 700; color: #FAF9F7; letter-spacing: -.02em; line-height: 1; }
.stack__tile-l { font-size: 12px; color: rgba(250,249,247,.55); margin: 4px 0 12px; }
.stack__tile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stack__tile li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(250,249,247,.08); padding-top: 6px; }
.stack__tile li strong { color: #FAF9F7; font-weight: 600; }

/* Legal-layout pages (recruit, retain) are 720px wide: give the graphics room. */
.legal .g-block { margin: 28px 0 32px; }
.legal .g-block .g-caption { color: rgba(250,249,247,.48); }

@media (max-width: 920px) {
  .ladder__track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .ladder__track::before { display: none; }
  .give { grid-template-columns: 1fr; gap: 14px; }
  .give__arrow { transform: rotate(90deg); }
  .phone { max-width: 220px; margin: 0 auto; }
  .stack { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ladder__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spark { display: none; }
  .stack__fan { height: 380px; }
  .stackcard--1 { transform: rotate(-2deg) translateX(-8px); }
  .stackcard--3 { transform: rotate(2deg) translateX(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .goal__fill, .spark__line { transition: none !important; }
}
