/* Home: greeting and Finance today, tool cards, then recent / due / what's new.
   Builds on styles.css, nav.css and finance.css. */
.home { max-width: 1240px; }
.home > .ph { margin-bottom: 14px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.home-left, .home-right { display: flex; flex-direction: column; gap: 16px; }
.home-today .today-main { margin: 16px 0 14px; }
.home-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- greeting ---------- */
.home-hero { align-items: stretch; }
.hero-card {
  display: flex;
  flex-direction: column;
  padding: 18px 22px 20px;
  background-color: var(--card);
  background-image: repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule) 35px 36px);
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--ink);
}
.hero-hi { margin: 8px 0 4px; font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.hero-hi span { color: var(--accent); }
.hero-sum { margin: 0 0 18px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--ink-2); }
.hero-quick { margin-top: auto; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hero-act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.hero-act:hover { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.hero-act:hover .nav-ico { background: var(--ink); border-color: var(--ink); color: #fff; }
.home-hero .home-today { display: flex; flex-direction: column; }
.home-hero .home-today .today-kv, .home-hero .home-today .today-note { margin-top: auto; }

/* ---------- tool cards ---------- */
.home-tools { margin: 22px 0; }
.home-tools-head { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tool {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
a.tool:hover { border-color: var(--ink); box-shadow: 4px 4px 0 rgba(28, 27, 31, .85); transform: translate(-2px, -2px); }
.tool-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tool-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-bottom-width: 3px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.tool-ico svg { width: 22px; height: 22px; overflow: visible; }
a.tool:hover .tool-ico { background: var(--ink); border-color: var(--ink); color: #fff; }
a.tool:hover .tool-ico .lg-acc { fill: #b9a8f1; }
.tool.is-soon .tool-ico .lg-acc { fill: var(--muted); }
.tool-name { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.tool-desc { font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.tool-live { margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; color: var(--ink); }
.tool.is-soon { background: transparent; border-style: dashed; border-bottom-width: 1px; }
.tool.is-soon .tool-ico { border-style: dashed; border-bottom-width: 1.5px; color: var(--muted); }
.tool.is-soon .tool-name { color: var(--ink-2); }
.tool.is-soon .tool-live { color: var(--muted); }
.tool-go { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: var(--ink-2); }
a.tool:hover .tool-go { color: var(--accent); }

/* ---------- what's new ---------- */
.news { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; color: var(--ink); text-decoration: none; }
.news b { font-size: 14px; }
.news ul { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.news li { font-size: 11.5px; line-height: 1.45; color: var(--ink-2); }
.news-kind { display: inline-block; margin-right: 6px; padding: 1px 5px; background: var(--paper-3); font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); vertical-align: 1px; }
.news-more { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.news:hover .news-more { color: var(--accent); }

@media (max-width: 1100px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero-card { padding: 16px; }
  .hero-hi { font-size: 26px; }
  .hero-act { flex: 1 1 calc(50% - 4px); }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tool { padding: 12px; }
  .tool-ico { width: 34px; height: 34px; }
  .tool-ico svg { width: 18px; height: 18px; }
  .tool-name { font-size: 16px; }
  .tool-desc { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tool, .hero-act { transition: none; } a.tool:hover, .hero-act:hover { transform: none; } }
