/* College Planner — warm family look (ivory / ink / amber) with a scholarly
   indigo accent. Phone-first, big touch targets, plain language. */
:root {
  --indigo: #4338ca;
  --indigo-dark: #3730a3;
  --bg: #FAF6EF;
  --card: #FFFDF8;
  --ink: #26313D;
  --muted: #7A7263;
  --line: #E9E2D0;
  --amber: #F59E0B;
  --amber-soft: #FFF3D6;
  --red: #b91c1c;
  --green: #166534;
  --blue: #1d4ed8;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 18px; line-height: 1.45;
}
h1, h2, h3 { font-family: "Baloo 2", system-ui, sans-serif; }
.hidden { display: none !important; }
.screen { max-width: 560px; margin: 0 auto; padding: 16px 16px 110px; }
header h1 { margin: 8px 0 0; font-size: 27px; }
header .muted, .muted { color: var(--muted); margin: 2px 0 12px; }
.muted-sm { color: var(--muted); font-size: 14px; font-weight: 400; }
.center { text-align: center; }
h2 { font-size: 21px; margin: 22px 0 10px; }
h3 { font-size: 18px; margin: 16px 0 8px; }
a { color: var(--indigo); font-weight: 600; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; margin: 10px 0; box-shadow: 0 2px 8px rgba(38,49,61,.05);
}
.hint { font-size: 16px; background: var(--amber-soft); border-color: #F5D98B; }

label { display: block; margin: 10px 0; font-weight: 600; font-size: 16px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.check input { width: 26px; height: 26px; min-height: 26px; margin: 0; flex: none; }
input, select {
  display: block; width: 100%; font-size: 18px; padding: 14px; margin-top: 6px;
  border: 1px solid #D8CFB8; border-radius: 12px; background: #fff; min-height: 52px;
  color: var(--ink);
}
button {
  font-size: 18px; border-radius: 999px; border: 1px solid var(--line);
  padding: 14px 18px; min-height: 52px; background: #fff; cursor: pointer;
  font-weight: 600; color: var(--ink);
}
button.primary { background: var(--indigo); color: #fff; border: none; }
button.primary:active { background: var(--indigo-dark); }
button.secondary { background: #fff; width: 100%; margin-top: 10px; }
button.big { width: 100%; margin-top: 12px; }
button.danger { color: var(--red); border-color: #fca5a5; }
button.small { min-height: 44px; padding: 8px 14px; font-size: 16px; }
.row { display: flex; gap: 10px; }
.row button { flex: 1; }

.error { background: #fef2f2; color: var(--red); border: 1px solid #fca5a5;
  border-radius: 10px; padding: 12px; margin: 10px 0; font-size: 16px; }
.ok { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0;
  border-radius: 10px; padding: 12px; margin: 10px 0; font-size: 16px; }

.demo-banner {
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  background: var(--amber-soft); border: 1px solid #F5D98B; border-radius: 14px;
  padding: 10px 12px; font-size: 15px; margin-bottom: 6px;
}
.demo-banner .btn-amber {
  background: var(--amber); color: #26313D; font-weight: 700; text-decoration: none;
  border-radius: 999px; padding: 10px 14px; white-space: nowrap; min-height: 44px;
  display: inline-flex; align-items: center;
}

/* headline budget card */
.headline { border: 2px solid var(--line); }
.headline .balance { border-radius: 12px; padding: 14px; font-size: 20px; font-weight: 700; margin-top: 8px; }
.headline .balance.owed { background: #fef2f2; color: var(--red); }
.headline .balance.covered { background: #f0fdf4; color: var(--green); }
.headline .balance.even { background: var(--amber-soft); color: var(--ink); }
.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.totals .t { background: var(--bg); border-radius: 10px; padding: 10px; }
.totals .t .k { font-size: 13px; color: var(--muted); }
.totals .t .v { font-size: 20px; font-weight: 700; }
.year-note { font-size: 14px; color: var(--muted); margin-top: 8px; }
.pipeline { font-size: 16px; }
.pipeline .rowline { display: flex; justify-content: space-between; padding: 4px 0; }

/* cost rows */
.cost-row { display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--line); }
.cost-row:last-child { border-bottom: none; }
.cost-row .name { flex: 1; }
.cost-row .name .sub { font-size: 13px; color: var(--muted); }
.cost-row input { width: 130px; margin: 0; text-align: right; font-weight: 700; }

/* aid cards */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.chip { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.aid-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.aid-card .src { font-weight: 700; font-size: 19px; }
.pill { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.pill.awarded { background: #dcfce7; color: var(--green); }
.pill.applied { background: #dbeafe; color: var(--blue); }
.pill.planned { background: #fef9c3; color: #854d0e; }
.pill.declined { background: #f3f4f6; color: var(--muted); }
.aid-card .amt { font-size: 26px; font-weight: 800; margin: 6px 0; }
.aid-card .notes { font-size: 15px; color: var(--muted); }
.aid-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.aid-actions button { min-height: 48px; font-size: 16px; padding: 10px 14px; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; }
.starters button { min-height: 48px; font-size: 16px; background: var(--card); }

/* aid documents */
.aid-docs { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.doc-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.doc-row:last-of-type { border-bottom: none; }
.doc-link { flex: 1; font-weight: 600; word-break: break-all; }
.upload-label { display: block; margin-top: 10px; font-weight: 600; color: var(--indigo);
  border: 2px dashed #C7C2F0; border-radius: 12px; padding: 14px; text-align: center; cursor: pointer; }

/* deadlines */
.todo-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid var(--line); }
.todo-row:last-child { border-bottom: none; }
.todo-check {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  border: 2px solid #9ca3af; background: #fff; font-size: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.todo-check.done { background: var(--green); border-color: var(--green); color: #fff; }
.todo-row .txt { flex: 1; }
.todo-row .txt.done { text-decoration: line-through; color: var(--muted); }
.todo-row .detail { font-size: 15px; color: var(--muted); }
.todo-del { border: none; color: var(--muted); font-size: 22px; min-height: 40px; padding: 4px 10px; }
.due { display: inline-block; font-size: 14px; font-weight: 700; padding: 4px 12px;
  border-radius: 999px; margin-top: 6px; }
.due.overdue { background: #fef2f2; color: var(--red); border: 1px solid #fca5a5; }
.due.soon { background: var(--amber-soft); color: #92400e; border: 1px solid #F5D98B; }
.due.later { background: #f3f4f6; color: var(--muted); border: 1px solid var(--line); }
.pack-card .added { color: var(--green); font-weight: 700; font-size: 15px; margin-top: 6px; }

/* bottom tab bar */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--card);
  border-top: 1px solid var(--line); display: flex; z-index: 10;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbtn {
  flex: 1; border: none; border-radius: 0; background: none; font-size: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 0 12px; min-height: 64px; color: var(--muted);
}
.tabbtn span { font-size: 13px; font-weight: 600; }
.tabbtn.active { color: var(--indigo); }

.login-card { margin-top: 60px; }
.login-card h1 { font-size: 26px; }

.unlock-card { border: 2px solid #F5D98B; background: var(--amber-soft); }
.unlock-card h3 { margin-top: 4px; }
.demo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-banner button.btn-amber {
  border: none; cursor: pointer; font-size: 15px; font-family: inherit;
}
.lock-note {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--amber-soft); border: 1px solid #F5D98B; border-radius: 12px;
  padding: 12px; margin: 10px 0; font-size: 15px;
}
