/* ============================================================
   Sunday Reset — styles
   Calm, warm, rounded. One accent (lavender) + gold sun.
   ============================================================ */

:root {
  --bg:        #FBF8F3;   /* warm cream */
  --surface:   #FFFFFF;
  --surface-2: #F6F3FB;   /* faint lavender tint */
  --ink:       #3A3550;   /* deep muted plum */
  --ink-soft:  #6C6580;
  --muted:     #9A93A8;
  --line:      #ECE7F3;
  --accent:    #8B7CF0;   /* lavender / periwinkle */
  --accent-d:  #6F5EE0;
  --accent-soft:#EDE9FB;
  --gold:      #F6C85F;
  --mint:      #7FD1B9;
  --danger:    #E98A8A;

  --radius:    20px;
  --radius-sm: 13px;
  --shadow:    0 10px 30px -12px rgba(75, 60, 140, .28);
  --shadow-sm: 0 4px 14px -6px rgba(75, 60, 140, .22);
  --ring-track:#EAE4F6;

  --font: "Nunito", "Quicksand", ui-rounded, "Segoe UI Rounded",
          "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;

  --sat: env(safe-area-inset-top);
  --sab: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overscroll-behavior-y: none;
}
[hidden] { display: none !important; }
h1,h2,h3,p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* soft ambient background wash */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 85% -5%, rgba(139,124,240,.14), transparent 60%),
    radial-gradient(55vw 45vw at -10% 110%, rgba(246,200,95,.13), transparent 60%);
}

/* ============================================================
   Buttons + fields
   ============================================================ */
.btn {
  border: none; border-radius: 999px; font-weight: 800; font-size: 15px;
  padding: 12px 20px; color: var(--ink); background: var(--surface-2);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(111,94,224,.7); }
.btn-primary:hover { background: var(--accent-d); }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--accent-soft); color: var(--accent-d); font-weight: 800; }
.btn-soft:hover { filter: brightness(.98); }
.btn-add { margin-top: 10px; }

.field {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px;
  color: var(--ink); font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field::placeholder { color: var(--muted); }
.textarea { resize: vertical; min-height: 92px; line-height: 1.55; }

.link-btn {
  background: none; border: none; color: var(--ink-soft); font-size: 14px;
  font-weight: 700; text-align: left; padding: 8px 6px; border-radius: 10px; width: 100%;
}
.link-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn {
  border: none; background: transparent; font-size: 20px; width: 44px; height: 44px;
  border-radius: 12px; color: var(--ink); display: grid; place-items: center;
}
.icon-btn:hover { background: var(--surface-2); }

/* ============================================================
   License gate
   ============================================================ */
.gate {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  padding: 24px; background:
    radial-gradient(70vw 60vw at 80% 0%, rgba(139,124,240,.22), transparent 60%),
    linear-gradient(180deg, #F3EFFB, var(--bg));
}
.gate-card {
  width: 100%; max-width: 380px; background: var(--surface); border-radius: 28px;
  padding: 34px 28px; box-shadow: var(--shadow); text-align: center;
  animation: pop .4s cubic-bezier(.2,.9,.3,1.2);
}
.gate-mark { margin-bottom: 6px; }
.gate h1 { font-size: 27px; letter-spacing: -.02em; }
.gate-sub { color: var(--ink-soft); margin: 8px 4px 22px; font-size: 15px; }
#license-form { display: grid; gap: 12px; }
#license-input { text-align: center; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; }
.gate-msg { min-height: 18px; font-size: 13.5px; font-weight: 700; margin: 2px 0 0; }
.gate-msg.err { color: var(--danger); }
.gate-msg.ok  { color: var(--mint); }
.gate-fine { color: var(--muted); font-size: 12.5px; margin-top: 18px; }
.shake { animation: shake .4s; }

/* ============================================================
   Layout
   ============================================================ */
.app-layout { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px;
  padding: calc(var(--sat) + 8px) 12px 8px; background: rgba(251,248,243,.86);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar .brand-compact { flex: 1; }
.mini-pct { font-size: 13px; font-weight: 900; color: var(--accent-d); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.01em; }
.brand-name { font-size: 18px; }
.brand-dot {
  width: 22px; height: 22px; border-radius: 8px; flex: none;
  background: radial-gradient(circle at 50% 42%, var(--gold) 0 40%, transparent 42%),
              var(--accent);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}

.sidebar { display: none; }

/* mobile drawer */
@media (max-width: 899px) {
  .sidebar.drawer-open {
    display: flex; flex-direction: column; gap: 16px; position: fixed; z-index: 40;
    top: 0; left: 0; bottom: 0; width: 272px; overflow-y: auto;
    padding: calc(var(--sat) + 22px) 18px calc(22px + var(--sab));
    background: linear-gradient(180deg, #F7F3FD, #FBF8F3);
    box-shadow: var(--shadow); animation: drawerin .28s cubic-bezier(.2,.9,.3,1);
  }
  .sidebar.drawer-open .side-nav { display: grid; gap: 6px; }
  .sidebar.drawer-open .nav-btn {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    background: transparent; border: none; padding: 12px 14px; border-radius: 14px;
    font-size: 16px; font-weight: 800; color: var(--ink-soft);
  }
  .sidebar.drawer-open .nav-btn span { font-size: 18px; }
  .sidebar.drawer-open .nav-btn.active { background: var(--accent); color: #fff; }
  .sidebar.drawer-open .side-ring .ring { --size: 116px; }
  .sidebar.drawer-open .side-weeks h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
  .sidebar.drawer-open .side-week-list { display: grid; gap: 8px; }
  .sidebar.drawer-open .side-week {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px;
    background: var(--surface); border: 1px solid var(--line); width: 100%; text-align: left;
  }
  .sidebar.drawer-open .side-week.is-current { border-color: var(--accent); }
  .sidebar.drawer-open .side-week-range { font-size: 12.5px; font-weight: 700; }
  .sidebar.drawer-open .side-week-pct { font-weight: 900; color: var(--accent-d); font-size: 13px; margin-left: auto; }
  .sidebar.drawer-open .side-foot { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: auto; }
  .sidebar.drawer-open .version { color: var(--muted); font-size: 11px; font-weight: 700; padding: 8px 6px 0; }
}
@keyframes drawerin { from { transform: translateX(-100%); } to { transform: none; } }

.scrim {
  position: fixed; inset: 0; z-index: 39; background: rgba(58,53,80,.4);
  backdrop-filter: blur(2px);
}

.main { max-width: 760px; margin: 0 auto; padding: 18px 16px calc(40px + var(--sab)); }
.view { animation: fade .35s ease; }

/* ============================================================
   Home hero
   ============================================================ */
.hero { text-align: center; padding: 12px 6px 8px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; color: var(--accent-d); }
.hero-title { font-size: 30px; letter-spacing: -.02em; margin-top: 6px; }
.hero-ring { margin: 20px auto 8px; display: grid; place-items: center; gap: 10px; }
.hero-ring-caption { color: var(--ink-soft); font-weight: 700; font-size: 14.5px; }
.hero .btn-lg { margin-top: 14px; width: 100%; max-width: 360px; }
.hero .btn-ghost { margin-top: 10px; }

.friday-note {
  display: flex; gap: 12px; align-items: flex-start; margin: 18px 0;
  background: linear-gradient(180deg, #FFF7E6, #FFFDF7);
  border: 1.5px solid #F6E3B8; border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow-sm);
}
.friday-emoji { font-size: 26px; }
.friday-note strong { display: block; margin-bottom: 3px; }
.friday-note p { color: var(--ink-soft); white-space: pre-wrap; }

/* previous weeks */
.weeks-panel { margin-top: 22px; }
.weeks-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: transparent; border: none; padding: 8px 4px; font-size: 15px; font-weight: 900; color: var(--ink);
}
.weeks-head .chev { transition: transform .25s; color: var(--muted); }
.weeks-head[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.weeks-body { overflow: hidden; }
.week-cards { display: grid; gap: 10px; padding: 8px 2px 2px; }

.week-card {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow-sm); text-align: left; width: 100%;
}
.week-card.is-current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.week-card-info { flex: 1; min-width: 0; }
.week-card-range { font-weight: 800; font-size: 15px; }
.week-card-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.week-card .mini-ring { flex: none; }
.chip {
  font-size: 11px; font-weight: 900; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-d);
}

.empty {
  text-align: center; color: var(--muted); padding: 26px 16px; border: 1.5px dashed var(--line);
  border-radius: var(--radius); background: var(--surface);
}
.empty-emoji { font-size: 30px; display: block; margin-bottom: 8px; }
.empty strong { color: var(--ink-soft); display: block; }

/* ============================================================
   Ring
   ============================================================ */
.ring { --size: 132px; width: var(--size); height: var(--size); position: relative; }
.ring-lg { --size: 190px; }
.ring-md { --size: 96px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--ring-track); }
.ring .fill {
  stroke: url(#ringgrad); stroke-linecap: round;
  transition: stroke-dashoffset .9s cubic-bezier(.3,.8,.3,1);
}
.ring-center {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.ring-pct { font-size: calc(var(--size) * .26); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.ring-word { font-size: calc(var(--size) * .085); font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; margin-top: 5px; }
.ring.is-full .ring-pct { color: var(--accent-d); }

.side-ring { display: grid; place-items: center; gap: 8px; }
.side-ring-label { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); }

/* ============================================================
   Reset flow
   ============================================================ */
.reset-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 4px 2px 14px;
}
.reset-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; color: var(--accent-d); }
.reset-title { font-size: 25px; letter-spacing: -.02em; }
.reset-ring { flex: none; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.card-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { font-size: 17px; letter-spacing: -.01em; }
.card-hint { color: var(--muted); font-size: 13px; }
.card.done { border-color: #D9F0E6; box-shadow: 0 0 0 2px #E9F8F1; }
.card.pulse { animation: cardpulse .5s ease; }

.stack { display: grid; gap: 10px; }

/* priorities */
.priorities { display: grid; gap: 10px; }
.priority-row { display: flex; align-items: center; gap: 12px; }
.priority-num {
  width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-d); font-weight: 900; font-size: 14px;
}

/* events */
.event-row { display: flex; gap: 8px; align-items: center; }
.event-row .event-label { flex: 2; }
.event-row .event-day { flex: 0 0 96px; }
.event-row .event-time { flex: 0 0 108px; }
.del-btn {
  flex: none; width: 34px; height: 34px; border-radius: 10px; border: none; background: var(--surface-2);
  color: var(--muted); font-size: 16px; display: grid; place-items: center;
}
.del-btn:hover { background: #FBEAEA; color: var(--danger); }

/* meal grid */
.meal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.meal-grid { border-collapse: separate; border-spacing: 6px; min-width: 540px; width: 100%; }
.meal-grid th { font-size: 12px; font-weight: 800; color: var(--ink-soft); padding-bottom: 2px; }
.meal-grid th.slot-h, .meal-grid td.slot-l {
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
  text-align: right; padding-right: 6px; white-space: nowrap; font-weight: 800;
}
.meal-cell {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  padding: 9px 8px; font-size: 13px; color: var(--ink); font-family: inherit; min-height: 40px; text-align: center;
}
.meal-cell:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.meal-cell.filled { background: var(--accent-soft); border-color: transparent; font-weight: 700; color: var(--accent-d); }

/* checklist / self-care */
.checklist { display: grid; gap: 8px; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 4px 2px; }
.checkbox {
  width: 26px; height: 26px; flex: none; border-radius: 9px; border: 2px solid var(--line);
  background: var(--surface); display: grid; place-items: center; color: #fff; font-size: 15px;
  transition: transform .12s, background .2s, border-color .2s;
}
.checkbox.on { background: var(--accent); border-color: var(--accent); }
.checkbox.pop { animation: checkpop .34s ease; }
.check-text {
  flex: 1; border: none; background: transparent; font-size: 15px; color: var(--ink); font-family: inherit; padding: 4px 0;
}
.check-text:focus { outline: none; }
.check-row.done .check-text { color: var(--muted); text-decoration: line-through; }

.add-row { display: flex; gap: 8px; margin-top: 12px; }
.add-row .add-input { flex: 1; }

/* habits */
.habit-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 2px 4px; }
.habits { display: grid; gap: 8px; min-width: 460px; }
.habit-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; }
.habit-name { border: none; background: transparent; font-size: 14.5px; font-weight: 700; color: var(--ink); font-family: inherit; min-width: 0; }
.habit-name:focus { outline: none; }
.habit-days { display: flex; gap: 5px; }
.hday {
  width: 30px; height: 34px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 10.5px; font-weight: 800; color: var(--muted); display: grid; place-items: center;
  transition: transform .1s, background .2s;
}
.hday.on { background: var(--mint); border-color: transparent; color: #fff; }
.hday.pop { animation: checkpop .3s ease; }

/* planner */
.planner { display: grid; gap: 12px; }
.planner-inbox h3, .planner-day h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 8px; font-weight: 800; }
.planner-days { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.planner-day { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px; }
.drop-zone { display: grid; gap: 6px; min-height: 40px; border-radius: 10px; padding: 2px; transition: background .15s, box-shadow .15s; }
.drop-zone.dragover { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.planner-inbox .drop-zone { min-height: 46px; }
.plan-task {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow-sm);
}
.planner-day .plan-task { background: #fff; }
.plan-task.dragging { opacity: .5; }
.plan-grip { cursor: grab; color: var(--muted); font-size: 13px; }
.plan-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-x { border: none; background: transparent; color: var(--muted); font-size: 14px; }
.plan-empty { color: var(--muted); font-size: 12px; padding: 4px 6px; }

/* reset foot */
.reset-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 2px; }
.reset-foot-pct { font-weight: 900; color: var(--accent-d); font-size: 14px; }

/* ============================================================
   Day picker popover
   ============================================================ */
.day-picker { position: fixed; inset: 0; z-index: 55; display: grid; place-items: end center; padding: 0; background: rgba(58,53,80,.35); animation: fade .2s; }
.day-picker-card {
  width: 100%; max-width: 520px; background: var(--surface); border-radius: 24px 24px 0 0;
  padding: 20px 18px calc(20px + var(--sab)); box-shadow: var(--shadow); animation: slideup .28s cubic-bezier(.2,.9,.3,1);
}
.day-picker-title { font-weight: 900; text-align: center; margin-bottom: 14px; }
.day-picker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.day-pick {
  padding: 14px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 800; font-size: 13px; color: var(--ink);
}
.day-pick:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ============================================================
   iOS hint + toast + confetti
   ============================================================ */
.ios-hint {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--sab)); z-index: 50;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 40px 16px 16px;
  box-shadow: var(--shadow); animation: slideup .35s ease;
}
.ios-hint p { font-size: 13.5px; color: var(--ink-soft); }
.ios-hint p + p { margin-top: 6px; }
.ios-hint strong { color: var(--ink); }
.ios-hint-how { font-weight: 700; }
.ios-share { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-d); font-size: 12px; }
.ios-hint-x { position: absolute; top: 10px; right: 10px; border: none; background: var(--surface-2); width: 28px; height: 28px; border-radius: 9px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--sab)); transform: translateX(-50%) translateY(20px);
  z-index: 58; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 800; font-size: 14px; box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.confetti { position: fixed; inset: 0; z-index: 57; pointer-events: none; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes slideup { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes shake { 10%,90%{transform:translateX(-1px)} 20%,80%{transform:translateX(3px)} 30%,50%,70%{transform:translateX(-6px)} 40%,60%{transform:translateX(6px)} }
@keyframes checkpop { 0%{transform:scale(1)} 40%{transform:scale(1.28)} 100%{transform:scale(1)} }
@keyframes cardpulse { 0%{box-shadow:var(--shadow-sm)} 50%{box-shadow:0 0 0 4px var(--accent-soft)} 100%{box-shadow:var(--shadow-sm)} }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   Desktop
   ============================================================ */
@media (min-width: 900px) {
  .topbar { display: none; }
  .app-layout { display: grid; grid-template-columns: 288px 1fr; }
  .scrim { display: none !important; }

  .sidebar {
    display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh;
    padding: 26px 20px; border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #F7F3FD, #FBF8F3); overflow-y: auto;
  }
  .sidebar .brand-name { font-size: 20px; }
  .side-nav { display: grid; gap: 6px; }
  .nav-btn {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    background: transparent; border: none; padding: 11px 14px; border-radius: 14px;
    font-size: 15px; font-weight: 800; color: var(--ink-soft);
  }
  .nav-btn span { font-size: 17px; }
  .nav-btn:hover { background: var(--surface); color: var(--ink); }
  .nav-btn.active { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }

  .side-weeks { flex: 1; min-height: 0; overflow-y: auto; }
  .side-weeks h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
  .side-week-list { display: grid; gap: 8px; }
  .side-week {
    display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 13px;
    background: var(--surface); border: 1px solid var(--line); width: 100%; text-align: left;
  }
  .side-week.is-current { border-color: var(--accent); }
  .side-week-pct { font-weight: 900; color: var(--accent-d); font-size: 13px; margin-left: auto; }
  .side-week-range { font-size: 12.5px; font-weight: 700; }

  .side-foot { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
  .version { color: var(--muted); font-size: 11px; font-weight: 700; padding: 8px 6px 0; }

  .main { max-width: 860px; padding: 34px 40px 60px; }
  .hero { text-align: left; padding: 8px 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
  .hero-eyebrow, .hero-title { grid-column: 1; }
  .hero-title { font-size: 38px; }
  .hero-ring { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
  .hero .btn-lg { grid-column: 1; width: auto; justify-self: start; }
  .hero .btn-ghost { grid-column: 1; justify-self: start; margin-top: 0; }

  /* on desktop the hero ring is the primary; keep sidebar ring smaller */
  .side-ring .ring { --size: 116px; }

  .planner-days { grid-template-columns: repeat(4, 1fr); }
  .reset-title { font-size: 30px; }
}

@media (min-width: 900px) {
  /* hide the in-hero mobile ring caption duplication cleanly */
  .hero-ring-caption { max-width: 190px; text-align: center; }
}

@media (min-width: 1180px) {
  .main { max-width: 960px; }
  .planner { grid-template-columns: 220px 1fr; align-items: start; }
}
