/* The Shift · member portal. After-dark @thesunchi look, taken from the three
   approved canvas screens (Sign in, Home, Today's practice, 25.11.2026). */

@font-face { font-family: "Nudista"; src: url("/fonts/nudista-light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Nudista"; src: url("/fonts/nudista-regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nudista"; src: url("/fonts/nudista-semibold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ground: #0F0D17;
  --text: #8F86A8;
  --head: #FFFFFF;
  --accent: #C7B6FF;
  --handle: #9A93B3;
  --faint: #6F6888;
  --line: rgba(143, 134, 168, 0.25);
  --edge: rgba(143, 134, 168, 0.35);
  --focus: rgba(255, 255, 255, 0.7);
  --avatar-bg: #0B0B12;
  --font: "Nudista", ui-rounded, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--accent);
}
::selection { background: var(--accent); color: var(--ground); }
a { color: var(--accent); }
a:hover { color: var(--head); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
input:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 4px; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- column ---------- */
.screen {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 32px 28px 40px;
  display: flex;
  flex-direction: column;
}
.screen--home { gap: 48px; }
.screen--day { gap: 36px; }
.screen--login { padding: 56px 28px 40px; justify-content: space-between; gap: 48px; }
.screen--loading { justify-content: center; align-items: center; }

@media (min-width: 900px) {
  .screen { padding-top: 56px; }
  .screen--login { padding-top: 96px; }
}

/* ---------- type ---------- */
.h1 { margin: 0; font-size: 40px; font-weight: 400; line-height: 1.12; color: var(--head); text-wrap: balance; }
.h1--day { font-size: 36px; line-height: 1.15; }
.lead { margin: 0; font-size: 18px; line-height: 1.45; text-wrap: pretty; }
.lead--home { font-size: 20px; line-height: 1.4; }
.small { margin: 0; font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.label-quiet { margin: 0; font-size: 15px; font-weight: 400; color: var(--handle); }
.tnum { font-variant-numeric: tabular-nums; }
.link {
  font-size: 15px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer;
}
.link:hover { color: var(--head); }
.link--16 { font-size: 16px; }

/* ---------- buttons and fields ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  height: 56px;
  border: 0; border-radius: 9999px;
  background: var(--accent); color: var(--ground);
  font: inherit; font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), opacity 180ms var(--ease);
}
.btn:hover { background: var(--head); color: var(--ground); }
.btn--big { height: 64px; font-size: 20px; }
.btn--quiet { background: transparent; color: var(--head); border: 1px solid var(--edge); }
.btn--quiet:hover { background: transparent; color: var(--head); border-color: var(--accent); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.btn[disabled]:hover { background: var(--accent); }
.btn--quiet[disabled]:hover { background: transparent; }

.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 17px; color: var(--head); }
.input {
  height: 56px;
  width: 100%;
  padding: 0 20px;
  border-radius: 9999px;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--head);
  font: inherit; font-size: 18px;
}
.input--code { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--head);
  font: inherit; font-size: 17px; line-height: 1.4;
  resize: none;
  field-sizing: content;
  min-height: calc(2 * 1.4em + 28px);
}

.msg { margin: 0; font-size: 15px; line-height: 1.45; color: var(--head); }
.msg--error { color: #FFC9D6; }
.msg:empty { display: none; }

/* ---------- sign in ---------- */
.login-main { display: flex; flex-direction: column; gap: 16px; padding-top: 120px; }
.login-main .lead { max-width: 26ch; }
.login-form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.login-form label { font-size: 15px; color: var(--handle); }
.login-note { margin: 8px 0 0; font-size: 15px; line-height: 1.45; }
.login-alt { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; }
.demo-code { margin: 0; font-size: 14px; color: var(--accent); }
.byline { display: flex; align-items: center; gap: 12px; }
.byline img { width: 40px; height: 40px; border-radius: 9999px; background: var(--avatar-bg); object-fit: cover; }
.byline span { display: block; font-size: 15px; line-height: 1.25; }
.byline .name { font-weight: 600; color: var(--head); }
.byline .handle { color: var(--handle); }
@media (max-height: 760px) { .login-main { padding-top: 48px; } }

/* ---------- home ---------- */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top .me { display: flex; align-items: center; gap: 10px; }
.top .me img { width: 32px; height: 32px; border-radius: 9999px; background: var(--avatar-bg); object-fit: cover; }
.top .me span, .top .where { font-size: 15px; color: var(--handle); }
.hello { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.begin { display: flex; flex-direction: column; gap: 24px; }
.dots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px 0; justify-items: center; padding-top: 8px; }
.dot { display: block; width: 22px; height: 22px; border-radius: 9999px; border: 1px solid var(--edge); }
.dot--done { background: var(--accent); border: 0; }
.dot--today { border: 2px solid var(--accent); }

.stats { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.stat { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.stat dd { margin: 0; order: -1; font-size: 36px; line-height: 1; color: var(--head); font-variant-numeric: tabular-nums; }
.stat dt { font-size: 14px; line-height: 1.3; }
.stat--accent dd { color: var(--accent); }

.yours { display: flex; flex-direction: column; }
.yours h2 { margin: 0 0 8px; }
.row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--head);
  font-size: 19px;
  transition: color 180ms var(--ease);
}
.row:hover { color: var(--accent); }
.row small { font-size: 15px; color: var(--text); white-space: nowrap; }

.next { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.next .say { margin: 0; font-size: 22px; line-height: 1.4; color: var(--head); text-wrap: balance; }
.next .detail { margin: 0; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.next .btn { margin-top: 6px; }

/* ---------- today's practice ---------- */
.intro { display: flex; flex-direction: column; gap: 10px; }
.tabs { display: flex; gap: 24px; font-size: 16px; border-bottom: 1px solid var(--line); }
.tab {
  padding: 0 0 12px; margin-bottom: -1px;
  background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--text); font: inherit; font-size: 16px; cursor: pointer;
}
.tab:hover { color: var(--head); }
.tab[aria-selected="true"] { color: var(--head); border-bottom-color: var(--accent); }
.panel { display: flex; flex-direction: column; gap: 36px; }
.answers { display: flex; flex-direction: column; gap: 26px; margin: 0; }

.check { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.check h2 { margin: 0; font-size: 17px; font-weight: 400; color: var(--head); }
.scale { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.scale .end { font-size: 14px; }
.pick {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 9999px;
  border: 1px solid var(--edge);
  background: transparent; color: var(--text);
  font: inherit; font-size: 16px;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.pick:hover { border-color: var(--accent); color: var(--head); }
.pick[aria-checked="true"] { background: var(--accent); color: var(--ground); border-color: var(--accent); }
@media (max-width: 360px) { .pick { width: 42px; height: 42px; flex-basis: 42px; } }

.go { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.go .small { text-align: center; }

/* player */
.today-words { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.today-words li { display: flex; flex-direction: column; gap: 4px; }
.today-words .k { font-size: 14px; color: var(--handle); }
.today-words .v { font-size: 18px; line-height: 1.4; color: var(--head); }

.player { display: flex; flex-direction: column; gap: 20px; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.today-words + .player { padding-top: 28px; border-top: 1px solid var(--line); }
.player-row { display: flex; align-items: center; gap: 20px; }
.play {
  width: 72px; height: 72px; flex: 0 0 72px;
  border-radius: 9999px;
  border: 1px solid var(--accent);
  background: transparent; color: var(--accent);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.play:hover { background: var(--accent); color: var(--ground); }
.play svg { width: 26px; height: 26px; }
.play[disabled] { opacity: 0.45; cursor: default; }
.play[disabled]:hover { background: transparent; color: var(--accent); }
.player-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.player-title { font-size: 19px; color: var(--head); }
.player-time { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.seek {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 24px; margin: 0;
  background: transparent; cursor: pointer;
  --pct: 0%;
}
.seek::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--pct), var(--edge) var(--pct)); }
.seek::-moz-range-track { height: 2px; border-radius: 2px; background: var(--edge); }
.seek::-moz-range-progress { height: 2px; border-radius: 2px; background: var(--accent); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 9999px; background: var(--accent); border: 0; }
.seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 9999px; background: var(--accent); border: 0; }
.seek[disabled] { opacity: 0.45; cursor: default; }
.pending { margin: 0; font-size: 18px; line-height: 1.45; color: var(--head); }

/* how to + notes */
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose p { margin: 0; font-size: 17px; line-height: 1.5; max-width: 60ch; }
.prose h2 { margin: 12px 0 0; font-size: 17px; font-weight: 400; color: var(--head); }
.journal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.journal li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.journal .when { font-size: 14px; color: var(--handle); font-variant-numeric: tabular-nums; }
.journal .text { margin: 0; font-size: 17px; line-height: 1.45; color: var(--head); white-space: pre-wrap; overflow-wrap: anywhere; }
.journal .shift { font-size: 14px; }

.done-note { display: flex; flex-direction: column; gap: 12px; }

.upsell .say { margin: 0; font-size: 22px; line-height: 1.4; color: var(--head); text-wrap: balance; }
.upsell { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); }

/* gentle arrival of each view, from an already visible start */
.view-in { animation: viewIn 420ms var(--ease) both; }
@keyframes viewIn { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .view-in { animation: none; }
  * { transition: none !important; }
}

/* What has shifted so far (home) */
.noticed { display: flex; flex-direction: column; gap: 12px; padding: 0 0 8px; }
.noticed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.noticed-list li { display: flex; flex-direction: column; gap: 2px; }
.noticed-list .v { color: var(--head); font-size: 17px; line-height: 1.4; }
.noticed-list .k { font-size: 13px; color: var(--handle); }
/* Share after a centered session */
.share { display: flex; flex-direction: column; gap: 12px; padding: 24px 0; border-top: 1px solid var(--edge); }
.share-h { margin: 0; font-size: 22px; font-weight: 400; line-height: 1.3; color: var(--head); }

/* Welcome (first sign-in, owners of The Shift) */
.screen--welcome { gap: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.steps li { display: flex; align-items: baseline; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps .n { flex: 0 0 auto; min-width: 1ch; font-size: 22px; line-height: 1; color: var(--accent); }
.steps .t { font-size: 19px; line-height: 1.4; color: var(--head); text-wrap: pretty; }
.why { display: flex; flex-direction: column; gap: 12px; }
.why .detail, .recall .detail { margin: 0; font-size: 17px; line-height: 1.5; text-wrap: pretty; }

/* Day 21 done (top of home) */
.finale { display: flex; flex-direction: column; gap: 36px; padding-top: 24px; }
.finale-nums { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.finale-nums .big { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.finale-nums dd { margin: 0; order: -1; font-size: 64px; line-height: 1; color: var(--head); }
.finale-nums dt { font-size: 16px; line-height: 1.35; }
.finale-nums .big--accent dd { color: var(--accent); }
.recall { display: flex; flex-direction: column; gap: 12px; }
.recall .say { margin: 0; font-size: 22px; line-height: 1.4; color: var(--head); text-wrap: balance; overflow-wrap: anywhere; }
.recall .btn { margin-top: 4px; }
