/* Layout pieces used by the pages. Colours come from tokens.css. */

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-tight {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row-between {
  justify-content: space-between;
}

.strong {
  font-weight: 700;
}

.small {
  font-size: 13px;
}

.clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.narrow {
  max-width: 460px;
  margin: 0 auto;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

/* ---------- landing ---------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  padding: 24px 0 8px;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.6vw, 3.6rem);
  line-height: 1.1;
}

.eyebrow {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.lead {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 48px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--grad-mint);
  color: var(--ink);
}

/* ---------- dashboard ---------- */

.dash {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .dash {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-trend,
  .dash-recent,
  .dash-insights {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .dash {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .dash-checkin {
    grid-column: span 4;
  }

  .dash-motivation,
  .dash-current,
  .dash-summary {
    grid-column: span 2;
  }

  .dash-trend {
    grid-column: span 6;
  }

  .dash-recent {
    grid-column: span 4;
  }

  .dash-insights {
    grid-column: span 6;
  }

  .dash-exam,
  .dash-experiments {
    grid-column: span 2;
  }

  .dash-assistant {
    grid-column: span 2;
    flex-direction: column;
  }
}

.quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.quote .skeleton {
  display: block;
  height: 24px;
}

.moodrow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.moodbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 84px;
  padding: 10px 2px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: var(--well);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background-color 0.2s;
}

.moodbtn:hover {
  transform: translateY(-3px);
}

.moodbtn[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--emo, var(--accent)) 26%, var(--surface-solid));
  font-size: 14px;
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 12px;
}

.stats dt {
  color: var(--muted);
  font-size: 13px;
}

.stats dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.trendchart {
  display: block;
  width: 100%;
  height: 160px;
}

.trend-mid {
  stroke: var(--line);
  stroke-dasharray: 4 6;
}

.trend-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.trend-dot {
  fill: var(--surface-solid);
  stroke: var(--accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.entrylist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-solid);
  color: var(--ink);
  text-decoration: none;
}
