/* Smart start (onboarding recommendation), the Continue hero and share cards. Loaded after app.css. */

/* ------------------------------------------------------------------ welcome: the goal question */
.aim { gap: 16px; }
.aim-lead { text-align: center; color: var(--text-2); margin-top: -8px; }
.aim .step-title { text-align: center; text-wrap: balance; }
.aim-choices { gap: 10px; }
.aim-choices .choice { min-height: 64px; }
.aim-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); }
.aim-ic svg.ic { width: 26px; height: 26px; color: var(--mint); }
[data-theme="day"] .aim-ic svg.ic { color: var(--mint-deep); }
.aim-kicker { text-align: center; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ok-text, var(--mint)); }
.aim-card {
  padding: 22px; border-radius: var(--r-xl); border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent, var(--mint)) 18%, var(--surface)), var(--surface) 62%);
  display: grid; gap: 14px;
}
.aim-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.aim-head > div { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.aim-title { font-size: clamp(1.7rem, 7vw, 2.2rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.05; }
.aim-path { background: color-mix(in srgb, var(--accent, var(--mint)) 20%, var(--surface-2)); color: var(--text); }
.aim-why { font-size: 1.1rem; line-height: 1.5; color: var(--text); max-width: 34em; }
.aim-lesson { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 2px; min-height: 0; }
.aim-lesson:empty { display: none; }
.aim-lesson span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.aim-lesson b { font-size: 1.05rem; font-weight: 650; }
.aim-know { display: grid; gap: 10px; justify-items: center; text-align: center; }
.aim-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.know-chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
}
.know-chip:hover { border-color: var(--text-3); }
.know-chip.is-on { border-color: var(--mint); background: color-mix(in srgb, var(--mint) 14%, var(--surface)); }
.aim-links { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: center; }

/* ------------------------------------------------------------------ Learn: the Continue hero */
.hero { align-items: start; }
.hero .next-text { display: grid; align-content: start; }
.hero-top { display: grid; gap: 2px; margin-bottom: 18px; }
.hero-greet { font-size: 1.05rem; font-weight: 700; color: var(--accent-text); letter-spacing: -.005em; }
.hero-line { color: var(--text-2); font-size: .95rem; }
.hero .next-where { margin-top: 0; }
.hero .next-title { margin-bottom: 4px; }
.hero .next-actions { margin-top: 20px; }
.hero .next-actions .btn { min-width: 0; }
.hero-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 22px; }
.hero-stat {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 14px 10px 10px; border-radius: var(--r-l);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent); border: 1px solid var(--line);
}
.hero-stat > div { min-width: 0; display: grid; }
.hero-stat b { font-weight: 650; font-size: .95rem; overflow-wrap: anywhere; }
.hero-stat span { color: var(--text-2); font-size: .84rem; white-space: nowrap; }
.hero--done .next-title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }

.pring { position: relative; flex: none; width: var(--pring-size, 76px); height: var(--pring-size, 76px); }
.pring > svg { display: block; width: 100%; height: 100%; }
.pring-track { stroke: color-mix(in srgb, var(--text) 12%, transparent); }
.pring-fill { stroke: var(--accent, var(--mint)); transition: stroke-dasharray .7s var(--ease); }
.pring--goal .pring-fill { stroke: var(--gold, #ffb547); }
.hero-stat.is-reached .pring-fill { stroke: var(--mint); }
.pring-center { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.pring-center svg { width: 28px; height: 28px; color: var(--mint); }
[data-theme="day"] .hero-stat.is-reached .pring-fill { stroke: var(--mint-deep); }
[data-theme="day"] .pring-center svg { color: var(--mint-deep); }
[data-theme="day"] .pring-track { stroke: color-mix(in srgb, var(--text) 10%, transparent); }
html[data-motion="off"] .pring-fill { transition: none; }

@media (max-width: 560px) {
  .hero-rings { gap: 8px; }
  .hero-stat { padding: 8px 12px 8px 8px; }
  .hero-stat .pring { width: 54px; height: 54px; }
  .hero-stat .pring-center { font-size: .85rem; }
  .hero .next-actions .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------------------ share cards */
.share-btn { display: inline-flex; align-items: center; gap: 8px; }
.share-ic { display: inline-flex; }
.share-ic svg { width: 18px; height: 18px; }
.share-btn--icon { min-width: 38px; padding: 0 9px; }
.share-body { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.share-preview {
  display: grid; place-items: center; padding: 14px; border-radius: var(--r-l); background: var(--surface-2); border: 1px solid var(--line);
  min-height: 200px;
}
.share-img { display: block; max-width: 100%; max-height: min(52vh, 460px); width: auto; height: auto; border-radius: 14px; box-shadow: var(--shade); }
.share-preview.is-story .share-img { max-height: min(56vh, 520px); }
.share-wait { color: var(--text-2); font-size: .95rem; padding: 40px 10px; text-align: center; }
.share-side { align-content: start; gap: 16px; }
.share-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.share-tab {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
}
.share-tab:hover { border-color: var(--text-3); }
.share-tab.is-on { border-color: var(--mint); background: color-mix(in srgb, var(--mint) 14%, var(--surface)); }
.share-name { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.share-name input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--mint); flex: none; }
.share-name .small { display: block; margin-top: 2px; }
.share-note { min-height: 1.4em; }
.share-actions { display: grid; gap: 10px; }
.share-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-actions .btn { width: 100%; min-width: 0; }
@media (min-width: 760px) {
  .share-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

/* the icon-only share button next to the streak pill matches the pills */
.topbar .share-btn--icon { min-height: 36px; width: 38px; padding: 0; justify-content: center; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; color: var(--text-2); }
.topbar .share-btn--icon:hover { color: var(--text); background: var(--surface-2); }
.topbar .share-btn--icon .share-ic svg { width: 18px; height: 18px; }

/* "Today's plan" side card: app.css gives the class .today a two-column grid meant for something else */
.side-card.today { display: block; }
.aim > p.small { text-align: center; }
@media (max-width: 759px) { .share-img, .share-preview.is-story .share-img { max-height: 32vh; } .share-preview { min-height: 120px; } }
