/* Decision 108 (30 Oct 2026): the silent path of the home first screen, variant B only (_remind.html, remind.js, sample.js). Theme tokens only. */

/* "Not a good moment? Remind me tonight": a native <details>, so it is an inline panel, never a modal, and works with the keyboard and a screen reader. */
.remind { margin: 0; text-align: center; }
.remind-sum { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 12px; cursor: pointer; list-style: none;
  color: var(--accent-ink, var(--accent)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; border-radius: 8px; }
.remind-sum::-webkit-details-marker { display: none; }
.remind-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.remind[open] > .remind-sum { text-decoration: none; }
.remind-body { margin: 4px 0 8px; padding: 12px 14px 14px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  display: flex; flex-direction: column; gap: 12px; }
.remind-body fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.remind-body legend, .remind-email label { font-weight: 600; padding: 0; margin: 0 0 6px; }
.remind-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.remind-chip { position: relative; }
.remind-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.remind-chip span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; }
.remind-chip input:checked + span { border-color: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: inset 0 0 0 1px var(--accent); }
.remind-chip input:checked + span::before { content: "✓ "; white-space: pre; }
/* focus ring: the shared radio-chip rule in style.css (--focus, W151) */
.remind-custom { margin-top: 8px; min-height: 44px; font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; }
.remind-custom[hidden] { display: none; }
.remind-when { margin: -4px 0 0; }
.remind-ics, .remind-email { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.remind-repeat { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.remind-repeat label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.remind-repeat input { width: 20px; height: 20px; margin: 0; }
.remind-email { border-top: 1px solid var(--line); padding-top: 12px; }
.remind-email input[type=email] { min-height: 48px; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; width: 100%; box-sizing: border-box; }
.remind-btn { width: 100%; min-height: 48px; }
.remind-btn[hidden] { display: none; }
.remind-promise { margin: 0; }
.remind-msg { margin: 0; min-height: 1.2em; }
.remind-msg.is-error { color: var(--danger, #b3261e); }

/* The silent preview: a calm shape that breathes and the words of a session as captions. About 18 s a loop (remind.js), no sound, no video file. */
.silent { position: relative; margin: 8px 0 0; padding: 12px 14px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.silent[hidden] { display: none; }
.silent-art { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.silent-orb, .silent-ring { position: absolute; border-radius: 50%; }
.silent-orb { width: 40px; height: 40px; background: radial-gradient(circle at 35% 30%, var(--accent-ink, var(--accent)), var(--accent) 70%); opacity: .85; animation: silent-breathe 6s ease-in-out infinite; }
.silent-ring { width: 62px; height: 62px; border: 1px solid var(--accent); opacity: .35; animation: silent-ring 6s ease-in-out infinite; }
@keyframes silent-breathe { 0%, 100% { transform: scale(.78); } 50% { transform: scale(1.1); } }
@keyframes silent-ring { 0%, 100% { transform: scale(.85); opacity: .15; } 50% { transform: scale(1.04); opacity: .4; } }
.silent.is-paused .silent-orb, .silent.is-paused .silent-ring { animation-play-state: paused; }
.silent-cap { margin: 0; min-width: 0; padding-right: 30px; }
.silent-label { display: block; line-height: 1.3; }
.silent-lines { list-style: none; margin: 4px 0 0; padding: 0; position: relative; min-height: 2.9em; }
.silent-lines li { position: absolute; inset: 0 auto auto 0; width: 100%; font-size: 1.05rem; line-height: 1.4; opacity: 0; transition: opacity .8s ease; overflow-wrap: anywhere; }
.silent-lines li.on { opacity: 1; }
.silent-pause { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: .875rem; cursor: pointer; border-radius: 8px; }
.silent-pause:focus-visible { outline: 2px solid var(--accent); }
.silent-pause[aria-pressed=true] span { opacity: .5; }

/* Reduced motion: a static frame and all of the text, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  .silent-orb, .silent-ring { animation: none; }
  .silent-orb { transform: scale(.95); }
  .silent-pause { display: none; }
  .silent-lines { min-height: 0; }
  .silent-lines li { position: static; opacity: 1; transition: none; font-size: .95rem; }
}
.silent.is-static .silent-lines { min-height: 0; }
.silent.is-static .silent-lines li { position: static; opacity: 1; transition: none; font-size: .95rem; }

/* Captions under the sample button while it plays (sample.js): the line being spoken, or the paragraph when the clip has no timing data. */
.live-cap { margin: 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; text-align: left; }
.live-cap[hidden] { display: none; }
.live-cap-label { margin: 0 0 2px; }
.live-cap-text { margin: 0; font-size: 1.1rem; line-height: 1.4; min-height: 1.4em; overflow-wrap: anywhere; }
