/* Money Tree website. Mobile first; same palette as join.html. */
:root {
  --page: #0D1117;
  --card: #161B22;
  --border: #30363D;
  --heading: #E6EDF3;
  --text: #C9D1D9;
  --muted: #8B949E;
  --accent: #2ECC8F;
  --on-accent: #0B0F0E;
  --focus: #79C0FF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, summary:focus-visible, .table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
h1, h2, h3 { color: var(--heading); line-height: 1.25; }
h1 { font-size: 2rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.4rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
ul { padding-left: 1.25rem; }
li { margin: 0.3rem 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 1; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
}
.brand img { border-radius: 8px; }
.site-header ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.site-header a:not(.brand) { color: var(--text); text-decoration: none; }
.site-header a:not(.brand):hover { color: var(--accent); }

main { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; }
.lead { font-size: 1.15rem; color: var(--heading); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.reviewed { color: var(--muted); font-size: 0.9rem; }

.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--muted); }
/* Second content gives the separator empty alt text where supported. */
.crumbs li + li::before { content: "/"; content: "/" / ""; padding: 0 8px; color: var(--border); }

.hero { padding: 16px 0 8px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
}
.button-secondary { background: var(--card); color: var(--heading); border: 1px solid var(--border); }

.cards { display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px 12px; }

/* Phone screenshots: centred, never wider than the column. */
.shot { margin: 24px 0; text-align: center; }
.shot img { max-width: min(100%, 300px); height: auto; border-radius: 24px; border: 1px solid var(--border); }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 12px; }
/* Three columns fit a phone at this size, so both apps stay in view. */
table { border-collapse: collapse; width: 100%; font-size: 0.8rem; line-height: 1.45; }
caption { text-align: left; padding: 12px; color: var(--muted); font-size: 0.875rem; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
thead th { color: var(--heading); background: var(--card); }
tbody th { color: var(--heading); overflow-wrap: normal; }

details { border-top: 1px solid var(--border); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; color: var(--heading); font-weight: 600; }
details p { margin: 8px 0 0; }

.hub { list-style: none; padding: 0; }
.hub li { border-top: 1px solid var(--border); padding: 12px 0; }
.hub p { margin: 4px 0 0; color: var(--muted); }
.link-grid { display: grid; gap: 4px 16px; list-style: none; padding: 0; }
.sources { font-size: 0.875rem; word-break: break-word; }

.site-footer { border-top: 1px solid var(--border); padding: 24px 16px 32px; max-width: 1040px; margin: 0 auto; }
.footer-cols { display: grid; gap: 8px 32px; }
.site-footer h2 { font-size: 1rem; margin: 16px 0 4px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }

@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .link-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  table { font-size: 0.95rem; line-height: 1.5; }
  th, td { padding: 10px 12px; overflow-wrap: normal; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
