/* Your numbers section (index.html #numbers): the dashboard's Time saved
   card and the menu bar summary line, drawn as the app draws them. Bars
   grow when the section scrolls in (html.yn-armed, .yn-on, your-numbers.js). */

.numbers { border-top: 1px solid var(--border); }

.yn-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: end;
  margin-bottom: 3.6rem;
}
.yn-title { font-size: clamp(2.5rem, 4.4vw, 4rem); }
.yn-title em { font-style: normal; color: var(--accent); }
.yn-intro { color: var(--muted); font-size: 1.05rem; line-height: 1.85; }
.yn-intro strong { color: var(--text); font-weight: 500; }

.yn-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.2rem;
  align-items: start;
}

/* ─── App surfaces (macOS dark, as the dashboard draws them) ─── */
.yn-app {
  --app-bg: #1e1e20; --app-card: #262628; --app-line: rgba(255,255,255,.09);
  --app-text: #f2f2f4; --app-2: #a1a1a6; --app-3: #6e6e73;
  --kept: #2a9d4b; --you: rgba(10,132,255,.55);
  background: var(--app-bg); color: var(--app-text);
  border: 1px solid var(--border-2); border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  overflow: hidden;
}
.yn-bar {
  height: 30px; display: flex; align-items: center; gap: 7px; padding-left: 13px;
  border-bottom: 1px solid var(--app-line);
}
.yn-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.yn-bar i:nth-child(2) { background: #febc2e; }
.yn-bar i:nth-child(3) { background: #28c840; }
.yn-bar span { margin-left: auto; margin-right: auto; padding-right: 60px; font-size: .72rem; color: var(--app-3); }

.yn-page { padding: 22px; }
.yn-card {
  background: var(--app-card); border: 1px solid var(--app-line); border-radius: 12px;
  padding: 18px 20px 20px;
}
.yn-card-h { display: flex; align-items: baseline; gap: 9px; }
.yn-card-h svg { width: 15px; height: 15px; color: var(--app-2); flex: none; transform: translateY(2px); }
.yn-card-title { font-size: 1.05rem; font-weight: 600; }
.yn-card-sub { font-size: .74rem; color: var(--app-2); margin: 2px 0 18px 24px; }

.yn-top { display: grid; grid-template-columns: 190px 1px minmax(0, 1fr); gap: 26px; align-items: start; }
.yn-rule { background: var(--app-line); align-self: stretch; }
.yn-big { display: flex; align-items: baseline; gap: 6px; }
.yn-big b { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.yn-big span { font-size: 1rem; font-weight: 600; }
.yn-big-l { font-size: .82rem; font-weight: 600; margin-top: 6px; }
.yn-big-s { font-size: .72rem; color: var(--app-2); margin-top: 3px; }

.yn-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 18px; }
.yn-stat-l { font-size: .62rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--app-3); }
.yn-stat-v { font-size: 1.35rem; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.yn-stat-s { font-size: .7rem; color: var(--app-2); margin-top: 1px; }

.yn-share { margin-top: 22px; }
.yn-share-t { font-size: .82rem; font-weight: 600; margin-bottom: 8px; }
.yn-band { display: flex; gap: 3px; height: 8px; }
.yn-band span { border-radius: 99px; }
.yn-band .k { background: var(--kept); flex: 61 1 0; }
.yn-band .y { background: var(--you); flex: 39 1 0; }
.yn-legend { display: flex; gap: 14px; margin-top: 7px; font-size: .7rem; color: var(--app-2); }
.yn-legend span::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 5px; background: var(--kept);
}
.yn-legend span + span::before { background: var(--you); }

.yn-months { margin-top: 22px; }
.yn-months-l { font-size: .62rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--app-3); }
.yn-chart {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px;
  height: 120px; align-items: end; margin-top: 10px;
}
.yn-col { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.yn-col em { font-style: normal; font-size: .66rem; font-weight: 600; color: var(--app-2); margin-bottom: 4px; }
.yn-col i {
  display: block; width: 100%; max-width: 54px; border-radius: 4px 4px 0 0;
  height: var(--h); background: linear-gradient(180deg, #3dbb63, var(--kept));
  transform-origin: bottom;
}
.yn-col span { font-size: .66rem; color: var(--app-3); margin-top: 6px; }

.yn-foot { font-size: .7rem; color: var(--app-2); line-height: 1.55; margin-top: 18px; }

/* ─── Menu bar dropdown ─── */
.yn-menu {
  border-radius: 12px; padding: 6px;
  background: rgba(40,40,42,.96);
}
.yn-mcard { background: #1f1f1f; border-radius: 10px; padding: 14px 14px 13px; }
.yn-mk { display: flex; justify-content: space-between; font-size: .6rem; font-weight: 600; letter-spacing: .09em; color: #7a7a7a; }
.yn-mk span:last-child { letter-spacing: 0; font-weight: 500; color: #34c759; }
.yn-mk span:last-child::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #34c759; margin-right: 5px; transform: translateY(-1px);
}
.yn-mname { font-size: .86rem; font-weight: 600; margin-top: 8px; }
.yn-mname small { font-size: .64rem; font-weight: 400; color: #808080; margin-left: 6px; }
.yn-mline { font-size: .68rem; color: #949494; margin-top: 10px; line-height: 1.4; }
.yn-mrule { height: 1px; background: #2e2e2e; margin: 11px 0; }
.yn-mstats { display: grid; grid-template-columns: repeat(3, 1fr); }
.yn-mstats b { display: block; font-size: 1.08rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.yn-mstats b.g { color: #34c759; }
.yn-mstats span { font-size: .6rem; color: #808080; }
.yn-msaved { margin-top: 11px; }
.yn-msaved b { display: block; font-size: .68rem; font-weight: 600; color: #34c759; }
.yn-msaved span { font-size: .6rem; color: #858585; }
.yn-mfoot { font-size: .6rem; color: #737373; margin-top: 11px; }
.yn-mitems { padding: 6px 8px 2px; font-size: .74rem; color: #d8d8d8; }
.yn-mitems div { padding: 4px 6px; border-radius: 5px; }
.yn-mitems div:first-child { background: rgba(10,132,255,.85); color: #fff; }

.yn-side-l {
  font-family: 'DM Mono', monospace; font-size: .7rem; letter-spacing: .05em;
  color: var(--faint); margin: 0 0 .8rem .2rem;
}

/* ─── What each number means ─── */
.yn-points {
  list-style: none; margin-top: 3.2rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 2rem;
}
.yn-points h3 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.02rem; font-weight: 600;
  margin-bottom: .45rem;
}
.yn-points p { color: var(--muted); font-size: .92rem; line-height: 1.7; }
.yn-caption { margin-top: 2.4rem; color: var(--faint); font-size: .82rem; }

/* Entrance: bars grow, the band fills, once the section is in view. */
html.yn-armed .yn-col i { transform: scaleY(0); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
html.yn-armed .yn-col:nth-child(2) i { transition-delay: .06s; }
html.yn-armed .yn-col:nth-child(3) i { transition-delay: .12s; }
html.yn-armed .yn-col:nth-child(4) i { transition-delay: .18s; }
html.yn-armed .yn-col:nth-child(5) i { transition-delay: .24s; }
html.yn-armed .yn-col:nth-child(6) i { transition-delay: .30s; }
html.yn-armed .yn-on .yn-col i { transform: scaleY(1); }
html.yn-armed .yn-band { clip-path: inset(0 100% 0 0 round 99px); transition: clip-path 1.1s cubic-bezier(.2,.7,.2,1) .2s; }
html.yn-armed .yn-on .yn-band { clip-path: inset(0 0 0 0 round 99px); }
@media (prefers-reduced-motion: reduce) {
  html.yn-armed .yn-col i, html.yn-armed .yn-band { transition: none; transform: none; clip-path: none; }
}

@media (max-width: 1060px) {
  .yn-stage { grid-template-columns: minmax(0, 1fr); }
  .yn-side { max-width: 320px; }
  .yn-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .yn-head { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 680px) {
  .yn-page { padding: 12px; }
  .yn-card { padding: 16px 14px; }
  .yn-top { grid-template-columns: 1fr; gap: 18px; }
  .yn-rule { display: none; }
  .yn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yn-chart { gap: 8px; }
  .yn-points { grid-template-columns: 1fr; }
  .yn-bar span { display: none; }
  /* The card fills the screen width here, so its desktop-scale labels
     (down to 10px) can grow to phone-readable sizes. */
  .yn-card-sub { font-size: .8rem; }
  .yn-big-s, .yn-stat-s, .yn-legend, .yn-foot { font-size: .78rem; }
  .yn-stat-l, .yn-months-l { font-size: .7rem; }
  .yn-col em, .yn-col span { font-size: .72rem; }
}
