/* CALICO METHOD APP */
.calico-hero {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  text-align: center;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 70%);
}

.calico-hero__inner { position: relative; z-index: 1; }
.calico-hero h1 { margin-bottom: var(--space-md); }
.calico-hero p { margin-inline: auto; margin-bottom: var(--space-xl); }

.calico-hero__tabs {
  display: inline-flex;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px;
  gap: 4px;
}

.calico-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.calico-tab:hover { color: var(--white); }

.calico-tab.active {
  background: var(--gold);
  color: var(--bg);
}

/* APP AREA */
.calico-app {
  padding-block: var(--space-xl) var(--space-2xl);
}

.calico-panel { display: none; }
.calico-panel.active { display: block; }

.calico-panel__header {
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.calico-panel__header h2 { margin-bottom: 0.75rem; }

/* SCORE DISPLAY */
.score-display {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.score-circle {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.score-ring {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.score-ring__track {
  fill: none;
  stroke: var(--surface);
  stroke-width: 8;
}

.score-ring__fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.29;
  stroke-dashoffset: 339.29;
  transition: stroke-dashoffset 1s ease;
}

.score-circle__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.score-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.score-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.score-meta__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.score-meta__value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

/* LOG FORM */
.log-form {
  margin-bottom: var(--space-xl);
}

.log-form h4 { margin-bottom: var(--space-lg); }
.log-metrics { gap: var(--space-md); }

/* HISTORY */
.history h4 { margin-bottom: var(--space-lg); }

.history__empty {
  color: var(--text-dim);
  font-style: italic;
  padding: var(--space-xl);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.history-entry {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transition: border-color var(--transition);
}

.history-entry:hover { border-color: var(--border-light); }

.history-entry__date {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.history-entry__score {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.history-entry__metrics {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.history-entry__metric {
  font-size: 0.72rem;
  background: var(--surface);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  color: var(--text-dim);
}

.history-entry__del {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  transition: color var(--transition);
  flex-shrink: 0;
}

.history-entry__del:hover { color: #ff5f56; }

/* GOALS */
.goals-form { margin-bottom: var(--space-xl); }
.goals-form h4 { margin-bottom: var(--space-lg); }

.goal-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.goal-card__check {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.goal-card__check.done {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.goal-card__body { flex: 1; }

.goal-card__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.goal-card__text {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.goal-card__meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.goal-card__del {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  transition: color var(--transition);
}

.goal-card__del:hover { color: #ff5f56; }

/* INSIGHTS */
.insight-empty {
  text-align: center;
  padding: var(--space-2xl);
}

.insight-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.insight-card__type {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.insight-card h4 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.insight-card p { font-size: 0.92rem; max-width: none; }

@media (max-width: 600px) {
  .score-display { flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
  .calico-hero__tabs { flex-direction: column; width: 100%; }
  .calico-tab { text-align: center; }
  .log-metrics { grid-template-columns: 1fr !important; }
}
