/* THE 7-DAY GLOW RESET — cozy Mila aesthetic, mobile-first, offline. */
:root {
  --bg: #17100b;
  --bg-soft: #241811;
  --card: #fffaf3;
  --ink: #2b1c12;
  --ink-soft: #7a5c44;
  --accent: #ff8a3d;
  --accent-deep: #e05e1a;
  --gold: #ffc53d;
  --pink: #f7c8d8;
  --line: #f0e2d2;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(120% 60% at 50% -10%, #3a2412 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--card);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}
.gr-app { max-width: 560px; margin: 0 auto; min-height: 100vh; }
.gr-screen { display: none; }
.gr-screen.is-active { display: block; animation: gr-fade .35s ease; }
@keyframes gr-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.gr-hero { position: relative; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.45); min-height: 420px; display: flex; align-items: flex-end; }
.gr-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gr-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,16,11,0) 30%, rgba(23,16,11,.55) 62%, rgba(23,16,11,.92) 100%); }
.gr-hero__copy { position: relative; padding: 28px 24px 30px; }
.gr-kicker { margin: 0 0 8px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.gr-kicker--small { font-size: 11px; }
.gr-kicker--center { text-align: center; }
.gr-title { margin: 0 0 10px; font-size: clamp(40px, 11vw, 58px); line-height: 1.02; font-weight: 800;
  background: linear-gradient(92deg, #ffd9a8, var(--accent) 55%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.gr-title--center { text-align: center; }
.gr-sub { margin: 0; font-size: 17px; color: #ffe9d2; font-weight: 500; }
.gr-sub--center { text-align: center; }

.gr-body { padding: 22px 18px 60px; }

/* ---------- how it works ---------- */
.gr-how { display: grid; gap: 12px; margin: 4px 0 26px; }
.gr-how__item { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,250,243,.06); border: 1px solid rgba(255,197,61,.22); border-radius: 16px; padding: 14px 16px; }
.gr-how__item p { margin: 2px 0 0; font-size: 15px; color: #ffe9d2; }
.gr-how__n { flex: 0 0 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--gold)); color: #2b1408; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ---------- type picker ---------- */
.gr-typepick { margin-bottom: 26px; }
.gr-label { font-size: 15px; font-weight: 700; color: #ffe9d2; margin: 0 0 10px; }
.gr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gr-chip { border: 1px solid rgba(255,197,61,.35); background: rgba(255,250,243,.06); color: #ffe9d2; border-radius: 999px; padding: 9px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s; }
.gr-chip.is-sel { background: linear-gradient(135deg, var(--accent), var(--gold)); color: #2b1408; border-color: transparent; }
.gr-hint { font-size: 13px; color: #c9a37e; margin: 10px 0 0; }
.gr-hint--center { text-align: center; }

/* ---------- buttons ---------- */
.gr-btn { display: block; width: 100%; border: none; border-radius: 999px; padding: 16px 22px; font-size: 17px; font-weight: 800; cursor: pointer; margin: 10px 0; transition: transform .12s, opacity .12s; font-family: inherit; }
.gr-btn:active { transform: scale(.98); }
.gr-btn--primary { background: linear-gradient(135deg, var(--accent-deep), var(--accent) 60%, var(--gold)); color: #2b1408; box-shadow: 0 10px 26px rgba(224,94,26,.35); }
.gr-btn--primary:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.gr-btn--ghost { background: transparent; border: 1.5px solid rgba(255,197,61,.4); color: #ffe9d2; }
.gr-btn--small { font-size: 14px; padding: 11px 18px; width: auto; margin: 18px auto 0; }

.gr-disclosure { font-size: 12px; color: #a8845f; text-align: center; margin: 26px 6px 0; line-height: 1.5; }

/* ---------- challenge top ---------- */
.gr-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 26px 18px 6px; }
.gr-top__title { margin: 4px 0 0; font-size: 24px; font-weight: 800; color: #fff3e2; }
.gr-ring { position: relative; width: 72px; height: 72px; flex: 0 0 72px; }
.gr-ring__svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.gr-ring__track { fill: none; stroke: rgba(255,197,61,.18); stroke-width: 8; }
.gr-ring__bar { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.gr-ring__num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #ffe9d2; }

/* ---------- day list ---------- */
.gr-days { display: grid; gap: 10px; margin: 14px 0 22px; }
.gr-day { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--card); color: var(--ink); border: none; border-radius: 18px; padding: 14px 16px; cursor: pointer; font-family: inherit; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.gr-day.is-locked { opacity: .55; cursor: not-allowed; }
.gr-day.is-done { background: linear-gradient(135deg, #fff3df, #ffe7c4); }
.gr-day.is-current { outline: 3px solid var(--gold); }
.gr-day__emoji { font-size: 26px; flex: 0 0 32px; text-align: center; }
.gr-day__meta { flex: 1; display: flex; flex-direction: column; }
.gr-day__n { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep); font-weight: 800; }
.gr-day__t { font-size: 16.5px; font-weight: 700; }
.gr-day__arrow { font-size: 13px; font-weight: 800; color: var(--accent-deep); }

/* ---------- today card ---------- */
.gr-today { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 24px 20px; box-shadow: 0 14px 40px rgba(0,0,0,.35); margin-bottom: 8px; }
.gr-today .gr-kicker { color: var(--accent-deep); }
.gr-today__title { margin: 4px 0 8px; font-size: 24px; font-weight: 800; }
.gr-today__why { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; }
.gr-pep { display: flex; gap: 12px; background: #2b1430; border-radius: 16px; padding: 14px 15px; margin-bottom: 18px; }
.gr-pep__avatar { flex: 0 0 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--gold)); color: #2b1408; font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.gr-pep__text { margin: 1px 0 0; font-size: 15px; color: #ffe9d2; font-style: italic; }
.gr-tasks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.gr-task label { display: flex; gap: 12px; align-items: flex-start; background: #fdf3e7; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; cursor: pointer; font-size: 15px; transition: all .15s; }
.gr-task input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent-deep); flex: 0 0 22px; cursor: pointer; }
.gr-task.is-checked label { background: #e9f7e4; border-color: #9ed69a; }
.gr-task.is-checked span { text-decoration: line-through; color: var(--ink-soft); }
.gr-today .gr-btn--primary { margin-top: 4px; }
.gr-today .gr-hint { color: var(--ink-soft); }
.gr-actions { text-align: center; }

/* ---------- finale ---------- */
.gr-finale { padding-top: 34px; }
.gr-card { width: 100%; max-width: 340px; height: auto; border-radius: 18px; display: block; margin: 22px auto; box-shadow: 0 18px 50px rgba(0,0,0,.5); background: #1d0f24; }
.gr-finale__btns { max-width: 340px; margin: 0 auto; }
.gr-caption { width: 100%; max-width: 340px; display: block; margin: 12px auto 0; border-radius: 14px; border: 1.5px solid rgba(255,197,61,.35); background: rgba(255,250,243,.07); color: #ffe9d2; padding: 12px 14px; font-size: 14px; font-family: inherit; resize: vertical; }

.gr-emailbox { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 24px 20px; margin: 30px 0 8px; }
.gr-emailbox h3 { margin: 0 0 8px; font-size: 20px; }
.gr-emailbox p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; }
.gr-emailbox .gr-btn { margin-bottom: 0; }

/* email module polish inside the card */
.mila-email__label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.mila-email__input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 16px; margin-bottom: 10px; font-family: inherit; background: #fff; color: var(--ink); }
.mila-email__honeypot { position: absolute; left: -9999px; }
.mila-email__note { font-size: 13.5px; color: var(--ink-soft); margin: 10px 0 0; }

@media (min-width: 600px) {
  .gr-body { padding-left: 28px; padding-right: 28px; }
}
