/* Couponing with Katya — LOCKED first haul dashboard (Aug 22)
   Restored to match landing-preview.png. Do not iterate design. */

:root {
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --ink: #2C343C;
  --ink-soft: #4B5563;
  --mute: #8B93A1;
  --mute-2: #A8B0BC;
  --line: #E6E8EE;

  --orange: #F0A24A;
  --orange-soft: #F8D9A8;
  --orange-deep: #E8943A;

  --green: #7FB24A;
  --green-soft: #C5DF8A;
  --green-deep: #5FA86A;
  --green-text: #6A9E3E;

  --mint: #8FBF9F;
  --purple: #8B7AE0;
  --purple-soft: #EDEAFB;
  --blue: #6B8AE8;

  --shadow: 0 8px 24px rgba(44, 52, 60, 0.06), 0 2px 6px rgba(44, 52, 60, 0.04);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 28px 48px;
}

/* —— Hero —— */
.hero {
  position: relative;
  text-align: center;
  padding: 12px 0 8px;
  overflow: hidden;
}

.ghost {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  font-size: clamp(72px, 14vw, 140px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(44, 52, 60, 0.045);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

.pct-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FFF8EE;
  border: 1.5px solid var(--orange-soft);
  color: var(--orange-deep);
  margin-bottom: 10px;
}

.title {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
}

.title-main {
  display: block;
  font-size: clamp(34px, 5.2vw, 48px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.05;
}

.title-sub {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.with { color: var(--purple); }
.katya { color: var(--green-text); }

.rule {
  display: inline-block;
  width: 36px;
  height: 2px;
  border-radius: 2px;
}
.rule-orange { background: linear-gradient(90deg, transparent, var(--orange)); }
.rule-green { background: linear-gradient(90deg, var(--green), transparent); }

.nav-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.nav-pill a:hover { color: var(--ink); }
.nav-pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.caption {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--mute);
}

/* —— Metric cards —— */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.metric-card,
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 18px 18px 16px;
}

.metric-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.icon-orange { background: #FFF1DF; color: var(--orange-deep); }
.icon-green { background: #EAF5D8; color: var(--green-text); }
.icon-mint { background: #E5F3EA; color: #5A9A72; }
.icon-purple { background: var(--purple-soft); color: var(--purple); }

.metric-abbr {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.metric-value {
  margin: 6px 0 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.metric-value-mm { color: var(--green-text); }

.metric-label {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mute);
}

/* —— Charts —— */
.charts {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.chart-card { padding: 18px 18px 16px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.card-head h2,
.footer-col h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mute);
}

.pct-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.earn {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  color: var(--green-text);
}

.progress-wrap { margin-bottom: 14px; }

.progress-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #EEF0F4;
  overflow: visible;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--green-soft) 55%, var(--green));
}

.threshold-mark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--ink-soft);
  transform: translateX(-50%);
}

.threshold-mark span {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--purple-soft);
}

.tip-icon { font-size: 14px; line-height: 1.4; }
.tip p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.tip strong { color: var(--green-text); font-weight: 700; }

.donut-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 150px;
}

.donut {
  position: relative;
  flex: 0 0 auto;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mute);
}

.donut-total {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend strong { color: var(--ink); margin-left: auto; padding-left: 8px; }

.swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.swatch-oop { background: var(--orange); }
.swatch-rr { background: var(--green-soft); }
.swatch-wc { background: var(--blue); }
.swatch-mm { background: var(--green-deep); }

.week-btn {
  border: none;
  background: #F0F2F5;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: default;
}

.bars {
  display: flex;
  gap: 8px;
  height: 160px;
  margin-top: 4px;
}

.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  color: var(--mute);
  padding: 4px 0 22px;
  min-width: 28px;
  text-align: right;
}

.bar-grid {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
}

.bar {
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--green-soft) 0%, var(--orange) 100%);
}

.bar-col span {
  font-size: 10px;
  font-weight: 600;
  color: var(--mute);
  padding-bottom: 2px;
}

/* —— Features —— */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding: 18px 16px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 8px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.feature h3 {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.feature p {
  margin: 0;
  font-size: 12px;
  color: var(--mute);
  line-height: 1.35;
}

/* —— Footer —— */
.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding: 20px 22px;
}

.email {
  display: inline-block;
  margin-top: 8px;
  color: var(--green-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ig {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.handle { color: var(--purple); font-weight: 600; }

.fineprint {
  margin: 22px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--mute-2);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .charts { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .page { padding: 24px 16px 36px; }
  .metrics,
  .features,
  .footer { grid-template-columns: 1fr; }
  .nav-pill { gap: 10px; padding: 9px 14px; font-size: 10px; }
  .title-sub { letter-spacing: 0.14em; font-size: 13px; }
}
