/* FULL CIRCLE app — components.

   This stylesheet is the approved app design made real: artifact "Full Circle
   Mobile App" (claude.ai, published 2026-08-08), which staff signed off on as
   the look of the series app. The artifact styles everything inline; here the
   same values become classes. When look and code disagree, the artifact wins —
   check it before "fixing" a size or colour that seems odd.

   The design is LIGHT-ONLY, deliberately: warm paper, ink, the four quadrant
   colours. The splash screen provides the one dark moment. Do not add a dark
   mode without a designed one to copy from.

   Per-week accent: views set style="--wq: …; --wq-soft: …; --wq-ink: …" from
   weeks.json, and the components below follow. tokens.css still carries the
   canonical brand hexes.

   Fonts are self-hosted (assets/css/fonts.css). No Google Fonts @import — it
   breaks offline typography and blocks first paint. */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

html { background: var(--paper); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--paper);
  color: var(--fc-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: var(--q-trust); }

#app { min-height: 100dvh; display: flex; flex-direction: column; }

.boot-center { min-height: 100dvh; display: grid; place-items: center; }
.boot-note { color: var(--fc-muted); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-head); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.02; text-transform: uppercase;
}
.eyebrow-dot { display: flex; align-items: center; gap: 10px; }
.eyebrow-dot .dot { width: 9px; height: 9px; border-radius: 99px; background: var(--wq, var(--accent)); flex: none; }
.eyebrow-dot .label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--wq-ink, var(--accent-ink));
}
.kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fc-muted);
}
.muted { color: var(--fc-muted); }

/* ---------- Screens & chrome ---------- */
.screen { flex: 1; display: flex; flex-direction: column; min-height: 100dvh; }
.scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding-top: calc(10px + env(safe-area-inset-top));
  padding-bottom: 24px;
}
.pad { padding-left: 22px; padding-right: 22px; }

.spectrum {
  height: 6px; border-radius: 999px; overflow: hidden; display: flex;
  margin-bottom: 16px;
}
.spectrum span { flex: 1; }
.spectrum span:nth-child(1) { background: var(--q-trust); }
.spectrum span:nth-child(2) { background: var(--q-guide); }
.spectrum span:nth-child(3) { background: var(--q-engage); }
.spectrum span:nth-child(4) { background: var(--q-develop); }

/* ---------- Tab bar ---------- */
.tabbar {
  flex: none; border-top: 1px solid var(--fc-line);
  background: rgba(250, 250, 246, 0.94); backdrop-filter: blur(12px);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  position: sticky; bottom: 0; z-index: 30;
}
.tabbar .tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 6px 0; cursor: pointer; text-decoration: none;
}
.tabbar .tab svg { opacity: 0.6; }
.tabbar .tab span { font-size: 10.5px; font-weight: 500; letter-spacing: 0.02em; color: #9AA396; }
.tabbar .tab[aria-current='page'] svg { opacity: 1; }
.tabbar .tab[aria-current='page'] span { color: var(--fc-ink); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1.5px solid var(--fc-line);
  border-radius: 20px; overflow: hidden;
}
.card__rule { height: 7px; background: var(--wq, var(--accent)); }
.card__body { padding: 22px 22px 20px; }

.panel { border-radius: 18px; padding: 20px 22px; background: var(--surface-2); }
.panel--info { background: var(--q-trust-soft); color: #2C5966; font-size: 14.5px; line-height: 1.45; border-radius: 16px; padding: 16px 18px; }

/* Reading-rhythm chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips .chip {
  font-size: 12.5px; font-weight: 500;
  color: var(--wq-ink, var(--accent-ink)); background: var(--wq-soft, var(--accent-soft));
  padding: 7px 13px; border-radius: 999px;
}
.chips .chip--line {
  background: var(--surface); border: 1.5px solid var(--fc-line);
  color: var(--fc-ink); font-size: 14px; padding: 8px 14px;
}

/* ---------- Buttons ---------- */
.pill {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 17px; border-radius: 999px;
  font-size: 16px; font-weight: 500; cursor: pointer;
  border: 1.5px solid transparent;
}
.pill--accent { background: var(--accent); color: var(--paper); }
.pill--ink    { background: var(--fc-ink); color: var(--paper); }
.pill--trust  { background: #2C5966; color: var(--paper); }
.pill--ghost  { background: transparent; color: var(--fc-ink); border-color: var(--line-strong); }
.pill[disabled] { background: rgba(23,33,26,0.12); color: rgba(23,33,26,0.4); cursor: not-allowed; }

.linklike { font-size: 14px; font-weight: 500; cursor: pointer; }

/* ---------- Forms ---------- */
.field-label { font-size: 13px; font-weight: 500; color: var(--fc-muted); }
input[type="text"], input[type="email"], input[type="date"], textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--fc-ink);
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: 12px; padding: 14px 16px; outline: none;
}
input:focus, textarea:focus { border-color: var(--wq, var(--accent)); }
textarea { min-height: 120px; line-height: 1.5; resize: vertical; }

.save-note { font-size: 12px; color: #9AA396; }
.save-note.saved { color: var(--q-guide); }

/* ---------- 40-day grid ---------- */
.day-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.day-cell {
  aspect-ratio: 1; border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: #A8B0A4; border: 1.5px solid var(--fc-line);
  font-family: var(--font-head); font-weight: 700; font-size: 19px;
}
.day-cell--today { background: var(--surface); color: var(--fc-ink); border-color: var(--fc-ink); }
.day-cell--done  { background: var(--wq, var(--accent)); color: #fff; border-color: var(--wq, var(--accent)); }
.day-cell--open  { background: var(--surface); color: var(--fc-ink); }

.ring { transform: rotate(-90deg); }

/* ---------- Week list rows ---------- */
.week-card {
  background: var(--surface); border: 1.5px solid var(--fc-line);
  border-radius: 18px; padding: 18px 20px; cursor: pointer;
  display: flex; gap: 16px; align-items: flex-start;
  width: 100%;
}
.week-card .num {
  width: 38px; height: 38px; border-radius: 99px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 16px;
  background: var(--wq-soft); color: var(--wq);
}
.week-card h3 {
  margin: 3px 0 0; font-family: var(--font-head); font-weight: 700;
  font-size: 20px; line-height: 1.15; letter-spacing: -0.01em; text-transform: uppercase;
}

/* Choice cards (role picker, menu rows) */
.choice {
  background: var(--surface); border: 1.5px solid var(--fc-line);
  border-radius: 18px; padding: 19px 20px; cursor: pointer;
  display: flex; align-items: center; gap: 16px; width: 100%;
}
.choice .bar { width: 11px; height: 44px; border-radius: 99px; flex: none; }
.choice h3 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.choice .desc { margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--fc-muted); }
.choice .chev { color: #9AA396; font-size: 18px; }

.list-row {
  display: flex; align-items: center; gap: 15px; padding: 17px 0;
  border-top: 1px solid var(--fc-line); cursor: pointer; width: 100%;
}
.list-row .icon {
  width: 38px; height: 38px; border-radius: 99px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.list-row .title { font-size: 16px; font-weight: 500; }
.list-row .sub { margin-top: 2px; font-size: 13.5px; color: var(--fc-muted); }

/* ---------- Serve ---------- */
.seg-track {
  height: 8px; border-radius: 999px; background: var(--fc-line);
  overflow: hidden; display: flex;
}
.seg-track span { display: block; height: 100%; }

.feed-mask {
  height: 196px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 78%, transparent);
}
.feed-rise { animation: fcRise 26s linear infinite; }
@keyframes fcRise { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.feed-row { display: flex; align-items: center; gap: 13px; padding: 11px 22px; }
.feed-row .dot { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.feed-row .who { font-size: 15px; font-weight: 500; }
.feed-row .where { font-size: 13px; color: var(--fc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-row .hrs { font-family: var(--font-head); font-weight: 700; font-size: 16px; }

.partner-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-top: 1px solid var(--fc-line); font-size: 15.5px;
}
.partner-row .dot { width: 7px; height: 7px; border-radius: 99px; flex: none; }
.partner-row:last-child { border-bottom: 1px solid var(--fc-line); }

/* ---------- Bottom sheets ---------- */
.sheet-veil {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(23, 33, 26, 0.4);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.sheet {
  background: var(--paper); border-radius: 26px 26px 0 0;
  max-height: 92%; overflow-y: auto;
  animation: fcSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes fcSheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head .title {
  font-family: var(--font-head); font-weight: 800; font-size: 26px;
  letter-spacing: -0.02em; text-transform: uppercase;
}
.sheet-head .close { font-size: 15px; color: var(--fc-muted); cursor: pointer; padding: 4px 6px; }

/* Hours stepper */
.stepper { display: flex; align-items: center; gap: 18px; }
.stepper .step {
  width: 52px; height: 52px; border-radius: 99px; border: 1.5px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; cursor: pointer; color: var(--fc-ink); flex: none;
}
.stepper .value {
  flex: 1; text-align: center; font-family: var(--font-head); font-weight: 800;
  font-size: 56px; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.warn-soft { background: var(--q-engage-soft); color: #8A5211; border-radius: 12px; padding: 12px 15px; font-size: 14px; line-height: 1.4; }
.warn-hard { background: var(--q-develop-soft); color: #9A3227; border-radius: 12px; padding: 12px 15px; font-size: 14px; line-height: 1.4; }

.partner-chip {
  font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: 999px;
  cursor: pointer; background: var(--surface); color: var(--fc-muted);
  border: 1.5px solid var(--fc-line);
}
.partner-chip[aria-pressed='true'] { background: var(--fc-ink); color: var(--paper); border-color: var(--fc-ink); }

/* Onboarding steps */
.step-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--fc-line); }
.step-row:last-of-type { border-bottom: 1px solid var(--fc-line); }
.step-row .n {
  width: 26px; height: 26px; border-radius: 99px; color: var(--paper);
  font-size: 13px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; flex: none;
}
.step-row .body { font-size: 15.5px; line-height: 1.45; }

/* Toggle */
.toggle {
  width: 48px; height: 29px; border-radius: 99px; padding: 3px;
  background: var(--line-strong); display: flex; justify-content: flex-start;
  flex: none; cursor: pointer; transition: background .15s ease;
}
.toggle[aria-checked='true'] { background: var(--accent); justify-content: flex-end; }
.toggle .knob { width: 23px; height: 23px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(23,33,26,0.25); }

/* Video slots */
.video-hero {
  position: relative; aspect-ratio: 16/9; border-radius: 16px;
  background: var(--fc-ink); overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center; width: 100%;
}
.video-hero .play {
  width: 58px; height: 58px; border-radius: 99px;
  background: rgba(250,250,246,0.14); border: 1.5px solid rgba(250,250,246,0.5);
  display: flex; align-items: center; justify-content: center;
}
.video-hero .meta { position: absolute; left: 16px; bottom: 14px; color: var(--paper); text-align: left; }
.video-row {
  border-radius: 16px; background: var(--q-trust-soft); padding: 16px 18px;
  cursor: pointer; display: flex; align-items: center; gap: 14px; width: 100%;
}
.video-row .play { width: 42px; height: 42px; border-radius: 99px; background: var(--q-trust); display: flex; align-items: center; justify-content: center; flex: none; }

/* Fill-in blanks */
.blank-input {
  display: inline-block; width: 110px; border: none;
  border-bottom: 2px dashed var(--wq, var(--q-trust)); border-radius: 0;
  background: transparent; font-family: var(--font-body); font-size: 16.5px;
  font-weight: 700; color: var(--wq-ink, #2C5966); padding: 0 2px; text-align: center;
}
.blank-input:focus { border-color: var(--wq-ink, #2C5966); }

/* ---------- Misc ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(96px + env(safe-area-inset-bottom));
  background: var(--fc-ink); color: var(--paper);
  padding: 12px 18px; border-radius: 999px; font-weight: 500; font-size: 15px;
  z-index: 70; box-shadow: 0 8px 30px rgba(23,33,26,0.25);
}
.toast[hidden] { display: none; }
.offline-note {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: var(--q-develop-soft); color: #9A3227;
  font-size: 13.5px; font-weight: 600; text-align: center;
}
.offline-note[hidden] { display: none; }

:where(a, button, input, textarea, [tabindex], [role="button"]):focus-visible {
  outline: 2px solid var(--wq, var(--accent)); outline-offset: 2px;
}

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