:root {
  --green: #54b94d;
  --green-dark: #348f34;
  --bg: #f5f7f3;
  --card: rgba(255,255,255,.88);
  --text: #142014;
  --muted: #748074;
  --line: rgba(20,40,20,.09);
  --shadow: 0 18px 45px rgba(20,40,20,.10);
  --radius: 26px;
  --bottom-nav-h: 76px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(84,185,77,.20), transparent 34%),
    linear-gradient(180deg, #fbfcfa 0%, var(--bg) 100%);
}

.app {
  min-height: 100svh;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 18px);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 18px 12px;
  backdrop-filter: blur(18px);
  background: rgba(245,247,243,.78);
  border-bottom: 1px solid rgba(255,255,255,.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 42px;
  height: auto;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.profile-pill {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  text-decoration: none;
  color: var(--green-dark);
  background: #fff;
  box-shadow: 0 8px 24px rgba(20,40,20,.08);
}

.app-main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
}

.hero {
  margin: 8px 0 18px;
  padding: 24px;
  border-radius: 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(84,185,77,.96), rgba(45,130,56,.96));
  box-shadow: var(--shadow);
}

.hero p {
  margin: 0 0 4px;
  opacity: .85;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 9vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero span {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
  opacity: .92;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(14px);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.grid {
  display: grid;
  gap: 14px;
}

.tile {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px;
  border-radius: 24px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 12px 34px rgba(20,40,20,.08);
}

.tile-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--green-dark);
  background: rgba(84,185,77,.13);
}

.tile-icon i {
  font-size: 22px;
}

.tile strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.tile span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 30;
  height: var(--bottom-nav-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  border-radius: 26px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 16px 50px rgba(20,40,20,.18);
  backdrop-filter: blur(22px);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--muted);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.bottom-nav a i {
  font-size: 19px;
}

.bottom-nav a.active {
  color: var(--green-dark);
  background: rgba(84,185,77,.14);
}

@media (min-width: 760px) {
  .app-main {
    padding: 28px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 34px;
  }
}

@media (min-width: 1024px) {
  .app {
    padding-bottom: 110px;
  }

  .app-header {
    padding-left: 34px;
    padding-right: 34px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bottom-nav {
    left: 50%;
    right: auto;
    width: min(640px, calc(100% - 40px));
    transform: translateX(-50%);
  }
}

.mt {
  margin-top: 18px;
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.project-card {
  margin-bottom: 16px;
  padding: 24px;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, rgba(84,185,77,.98), rgba(38,121,55,.98));
  box-shadow: var(--shadow);
}

.project-card__top {
  display: grid;
  gap: 14px;
}

.project-card h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.project-card .eyebrow {
  color: rgba(255,255,255,.72);
}

.status-badge {
  justify-self: start;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,.18);
  color: #fff;
}

.progress-block {
  margin-top: 22px;
}

.progress-line {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.24);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.progress-block small {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.82);
  font-weight: 700;
}

.next-step {
  display: flex;
  gap: 10px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.9);
  line-height: 1.4;
}

.quick-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.action {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border-radius: 24px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow);
}

.action-primary {
  background: #172017;
  color: #fff;
}

.action-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(84,185,77,.14);
  color: var(--green);
  flex: 0 0 auto;
}

.action strong,
.action small {
  display: block;
}

.action small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.action-primary small {
  color: rgba(255,255,255,.68);
}

.section-title {
  margin: 8px 2px 12px;
}

.section-title h3,
.card h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.03em;
}

.card-head {
  margin-bottom: 12px;
}

.todo-list {
  display: grid;
  gap: 8px;
}

.todo-item {
  display: grid;
  grid-template-columns: 24px 1fr 18px;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.todo-item:first-child {
  border-top: 0;
}

.todo-item i:first-child {
  color: var(--green);
}

.todo-item i:last-child {
  color: var(--muted);
  font-size: 12px;
}

.soft-card {
  background: rgba(84,185,77,.08);
}

@media (min-width: 760px) {
  .project-card__top {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card h2 {
    font-size: 38px;
  }
}
