/* ── Covelo shared design system ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  /* Colour tokens */
  --ink:        #1a1a1a;
  --ink2:       #484848;
  --ink3:       #717171;
  --ink4:       #b0b0b0;
  --surface:    #ffffff;
  --surface2:   #f7f7f7;
  --surface3:   #ebebeb;
  --border:     #dddddd;

  --green:      #008a05;
  --green-bg:   #f0faf0;
  --green-border: #b8ddb8;

  --gold:       #c87f00;
  --gold-bg:    #fff8ec;
  --gold-border:#e8c97a;

  --blue:       #1a73e8;
  --blue-bg:    #eaf0fd;
  --blue-border:#c5d8f8;

  --red:        #c13515;

  /* Radii */
  --r:    12px;
  --rsm:  8px;
  --rxs:  6px;

  /* Shadows */
  --shadow:    0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);

  /* Typography */
  --font:  'Plus Jakarta Sans', sans-serif;
  --mono:  'DM Mono', monospace;
}

html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--surface2); color: var(--ink); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: var(--rsm);
  padding: 13px 22px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: var(--font);
  transition: opacity .15s, transform .1s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { opacity: .85; transform: scale(.98); }
.btn-dark  { background: var(--ink); color: #fff; }
.btn-gold  { background: var(--gold); color: #fff; }
.btn-outline { background: #fff; color: var(--ink2); border: 1.5px solid var(--border); }
.btn-green { background: var(--green); color: #fff; }
.btn-full  { width: 100%; }
.btn-sm    { padding: 9px 16px; font-size: 13px; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

/* ── Section label ── */
.slbl {
  font-size: 11px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 10px;
}

/* ── Alert strips ── */
.alert {
  border-radius: var(--rsm); padding: 11px 14px;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; font-weight: 500; line-height: 1.45;
}
.alert-gold  { background: var(--gold-bg);  border: 1.5px solid var(--gold-border); }
.alert-green { background: var(--green-bg); border: 1.5px solid var(--green-border); }
.alert-blue  { background: var(--blue-bg);  border: 1.5px solid var(--blue-border); }
.alert-warn  { background: #fff8ec; border: 1.5px solid #ffd580; }

/* ── Stats grid ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--border); border-radius: var(--rsm); overflow: hidden;
  margin-top: 14px;
}
.stat-cell { padding: 10px 0; text-align: center; background: var(--surface2); }
.stat-cell:not(:last-child) { border-right: 1px solid var(--border); }
.stat-lbl { font-size: 10px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; color: var(--ink3); margin-bottom: 4px; }
.stat-num { font-size: 14px; font-weight: 700; font-family: var(--mono); color: var(--ink); }
.stat-num.up { color: var(--green); }

/* ── Phone shell (used on landing/auth pages) ── */
.phone-shell {
  width: 375px; max-width: 100%;
  background: var(--surface2);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(0,0,0,.06);
  border: 1px solid var(--border);
}
.phone-statusbar {
  background: #fff; display: flex; justify-content: space-between;
  align-items: center; padding: 12px 24px 6px;
  font-size: 12px; font-weight: 700; color: var(--ink);
}
.phone-appbar {
  background: #fff; padding: 10px 20px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--surface3);
}
.logo-mark {
  font-family: var(--mono); font-size: 19px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase; color: var(--ink);
  text-decoration: none;
}
.phone-content { padding: 14px 16px 90px; display: flex; flex-direction: column; gap: 12px; }
.phone-bnav {
  background: #fff; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4,1fr); padding: 8px 0 18px;
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; padding: 4px 0; }
.nav-item .ni-e { font-size: 20px; }
.nav-item:not(.active) .ni-e { opacity: .38; }
.nav-item .ni-l { font-size: 10px; font-weight: 600; color: var(--ink3); }
.nav-item.active .ni-l { color: var(--ink); }

/* ── Streak / notif ── */
.streak-badge {
  display: flex; align-items: center; gap: 4px;
  background: var(--gold-bg); border: 1.5px solid var(--gold-border);
  border-radius: 20px; padding: 5px 11px;
  font-size: 13px; font-weight: 700; color: var(--gold);
}
.notif-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface2); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; font-size: 16px; cursor: pointer;
}
.notif-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--blue);
  position: absolute; top: 5px; right: 5px; border: 2px solid #fff;
}

/* ── Progress bar ── */
.prog-bg { height: 5px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 3px; background: var(--ink); transition: width .4s; }
.prog-fill.blue { background: var(--blue); }
.prog-fill.green { background: var(--green); }
.prog-fill.gradient { background: linear-gradient(90deg,#4ade80,#22d3ee); }

/* ── Form inputs ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.form-input {
  padding: 12px 14px; border-radius: var(--rsm);
  border: 1.5px solid var(--border); background: #fff;
  font-size: 15px; font-family: var(--font); color: var(--ink);
  outline: none; transition: border-color .18s;
  width: 100%;
}
.form-input:focus { border-color: var(--ink); }
.form-hint { font-size: 12px; color: var(--ink3); }

/* ── Link banner (blue, matches screenshot) ── */
.link-banner {
  background: var(--blue-bg); border: 1.5px solid var(--blue-border);
  border-radius: var(--r); padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
}
.link-banner-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.link-banner-sub { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.link-banner-btn {
  flex-shrink: 0; align-self: center; padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 700; background: transparent;
  border: 1.5px solid var(--blue-border); color: var(--blue);
  cursor: pointer; font-family: var(--font); white-space: nowrap; margin-left: 4px;
}

/* ── Upsell card (gold) ── */
.upsell-card {
  background: var(--gold-bg); border: 1.5px solid var(--gold-border);
  border-radius: var(--r); padding: 18px 16px;
}
.upsell-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.upsell-title { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 6px; line-height: 1.3; }
.upsell-sub { font-size: 13px; color: var(--ink2); line-height: 1.55; margin-bottom: 14px; }

/* ── Utility ── */
.hi-green { font-weight: 700; color: var(--green); }
.hi-gold  { font-weight: 700; color: var(--gold); }
.text-mono { font-family: var(--mono); }
