/* ============================================================
   Our Story — App (prototype)
   Calm, low-stimulation, one thing per screen. KISS.
   ============================================================ */

[hidden] { display: none !important; }

/* ---------- App bar ---------- */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.1rem, 0.6rem + 2vw, 2rem);
  background: rgba(5, 8, 11, 0.72);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--ink);
}
.app-mark { width: 28px; height: 28px; }
.app-exit {
  color: var(--ink-mute);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
}
.app-exit:hover { color: var(--accent); }

/* ---------- Layout ---------- */
.app-main {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(1.5rem, 1rem + 4vw, 3rem) clamp(1.1rem, 0.6rem + 2vw, 2rem) 5rem;
}
.view { animation: fade var(--dur) var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }

/* ---------- Home ---------- */
.greeting {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
}
.ask {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1.6rem;
}
.choices {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 460px) { .choices { grid-template-columns: 1fr 1fr; } }

.big-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 72px;
  padding: 1.1rem 1.4rem;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--border-interactive);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.big-btn:hover { transform: translateY(-2px); border-color: var(--cd-purple); box-shadow: var(--shadow-sm); }
.big-btn:active { transform: translateY(0); }
.big-btn--primary {
  color: var(--ink-on-neon);
  background: var(--grad-cta);
  border-color: transparent;
  box-shadow: 0 12px 30px -14px rgba(53, 240, 160, 0.55);
}
.big-btn--primary:hover { background: var(--grad-cta-hover); box-shadow: 0 16px 40px -14px rgba(53, 240, 160, 0.7); }

/* ---------- Stories ---------- */
.stories { margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); }
.stories-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  font-weight: 700;
  margin: 0 0 1rem;
}
.stories-empty { color: var(--ink-mute); margin: 0; }
.stories-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.story {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sp-purple);
  border-radius: var(--r-md);
  padding: 1.1rem 2.6rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.story:nth-child(6n+1) { border-left-color: var(--sp-amber); }
.story:nth-child(6n+2) { border-left-color: var(--sp-coral); }
.story:nth-child(6n+3) { border-left-color: var(--sp-magenta); }
.story:nth-child(6n+4) { border-left-color: var(--sp-purple); }
.story:nth-child(6n+5) { border-left-color: var(--sp-blue); }
.story:nth-child(6n+6) { border-left-color: var(--sp-teal); }
.story-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-mute);
}
.story-mode { color: var(--accent); font-weight: 600; }
.story-text { margin: 0.5rem 0 0; white-space: pre-wrap; line-height: 1.7; }
.story-del {
  position: absolute;
  top: 0.6rem; right: 0.55rem;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  color: var(--ink-mute); font-size: 1.25rem; line-height: 1;
  border-radius: 8px;
}
.story-del:hover { color: #FF8C7A; background: rgba(255, 122, 102, 0.12); }

/* ---------- Capture ---------- */
.back {
  background: none; border: 0; cursor: pointer;
  color: var(--ink-soft); font-weight: 600; font-size: 1rem;
  padding: 0.4rem 0.2rem; margin: 0 0 0.6rem;
}
.back:hover { color: var(--ink); }
.prompt {
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin: 0.4rem 0 1.6rem;
  min-height: 1.4em;
}

.speak { text-align: center; margin: 0.5rem 0 1.6rem; }
.mic {
  position: relative;
  width: 100px; height: 100px;
  margin: 0 auto;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--grad-cta);
  color: var(--ink-on-neon);
  cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(53, 240, 160, 0.55), var(--glow-soft);
  transition: transform var(--dur-fast) var(--ease);
}
.mic:hover { transform: translateY(-2px); }
.mic.is-listening { background: var(--grad-warm); color: var(--ink-on-neon); }
.mic-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid var(--sp-pink);
  opacity: 0;
}
.mic.is-listening .mic-ring { animation: ring 1.6s ease-out infinite; }
@keyframes ring {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.45); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .mic.is-listening .mic-ring { animation: none; opacity: 0.5; } }
.mic-hint { color: var(--ink-mute); font-size: 0.98rem; margin: 0.9rem 0 0; }

.entry {
  width: 100%;
  font-family: inherit;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
  padding: 1rem 1.1rem;
  border: 2px solid var(--border-interactive);
  border-radius: var(--r-md);
  background: var(--surface);
  resize: vertical;
  min-height: 150px;
}
.entry::placeholder { color: var(--ink-mute); }
.entry:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(53, 240, 160, 0.2), var(--glow-soft);
}
.capture-actions {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.capture-actions .big-btn { flex: 1; min-height: 60px; }
.link-btn {
  background: none; border: 0; cursor: pointer;
  color: var(--ink-soft); font-weight: 600; font-size: 1rem;
  padding: 0.6rem 0.4rem;
}
.link-btn:hover { color: var(--ink); }
.kept-note { margin: 1rem 0 0; font-size: 0.85rem; color: var(--ink-mute); text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%) translateY(1rem);
  background: #0C1613;
  color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 0.8rem 1.3rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  box-shadow: var(--shadow-lg), var(--glow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 50;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Cursor light / sparks moved to fx.css (shared with the landing) */
