/* The Blonje Bible Experience — static dist */

:root {
  --black: #030304;
  --purple-deep: #12081c;
  --purple-mid: #1e0f2e;
  --purple-glow: rgba(88, 52, 120, 0.35);
  --gold: #c9a962;
  --gold-bright: #e4d4a8;
  --gold-dim: rgba(201, 169, 98, 0.45);
  --white: #f5f3ef;
  --white-muted: rgba(245, 243, 239, 0.72);
  --white-dim: rgba(245, 243, 239, 0.45);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: "Cormorant Garamond", "Georgia", serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.app {
  position: relative;
  min-height: 100dvh;
  width: 100%;
}

/* Atmospheric layers */
.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.atmosphere__glow-top {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 120% 70% at 50% -20%,
    var(--purple-glow),
    transparent 55%
  );
}

.atmosphere__glow-bottom {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 110%,
    rgba(201, 169, 98, 0.08),
    transparent 45%
  );
}

.atmosphere__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85);
}

/* Screens */
.screen {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    visibility 0.55s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
}

.screen__inner {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
}

.screen__inner--wide {
  max-width: 32rem;
}

.screen__inner--left {
  text-align: left;
}

/* Typography */
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--white);
}

.title--sm {
  font-size: clamp(1.5rem, 5.5vw, 2rem);
}

.subtitle {
  margin: 0 0 1.5rem;
  font-size: clamp(0.95rem, 3.5vw, 1.05rem);
  line-height: 1.55;
  color: var(--white-muted);
}

.body {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--white-dim);
}

.divider {
  width: 3.5rem;
  height: 1px;
  margin: 1.25rem auto 1.5rem;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    transparent
  );
}

/* Progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.progress.is-visible {
  opacity: 1;
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width 0.5s var(--ease);
}

/* Scale list on intro */
.scale-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  text-align: left;
}

.scale-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: var(--white-muted);
}

.scale-list li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.scale-list__num {
  flex-shrink: 0;
  width: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
}

/* Station screen */
.station-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}

.station-name {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 400;
  color: var(--gold-bright);
}

.station-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--white-muted);
}

.station-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.station-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.station-dots span.is-current {
  background: var(--gold);
  transform: scale(1.2);
}

/* Card screen */
.card-frame {
  margin: 1.5rem 0;
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(
    165deg,
    rgba(30, 15, 46, 0.6),
    rgba(3, 3, 4, 0.9)
  );
}

.card-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-bright);
}

.card-insight {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--white-muted);
}

.card-scale {
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* Reflection */
.reflection-prompt {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--white);
  text-align: left;
}

.reflection-input {
  width: 100%;
  min-height: 7rem;
  margin-bottom: 1rem;
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  resize: vertical;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.reflection-input::placeholder {
  color: rgba(245, 243, 239, 0.3);
}

.reflection-input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.2);
}

.reflection-step {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-align: left;
  margin-bottom: 0.75rem;
}

/* Result */
.result-scale {
  margin: 1rem 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-bright);
}

.result-block {
  margin: 1.25rem 0;
  padding: 1.25rem;
  text-align: left;
  border-left: 2px solid var(--gold-dim);
  background: rgba(30, 15, 46, 0.35);
}

.result-block__label {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.result-block__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--white-muted);
}

/* Buttons */
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 18rem;
  margin: 2rem auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    opacity 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  color: var(--gold);
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid var(--gold-dim);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: rgba(201, 169, 98, 0.18);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn--ghost {
  color: var(--white-dim);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white-muted);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Footer on welcome */
.footer-note {
  margin-top: 2.5rem;
  font-size: 0.7rem;
  color: rgba(245, 243, 239, 0.35);
}

.divider--left {
  margin-left: 0;
}

.reflection-heading {
  text-align: left;
}

.actions--left {
  margin-left: 0;
  margin-right: 0;
}

.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;
}

body {
  background: linear-gradient(
    165deg,
    var(--black) 0%,
    var(--purple-deep) 45%,
    #0a0610 100%
  );
}

@media (min-width: 480px) {
  .screen {
    padding: 2rem;
  }

  .actions {
    max-width: 20rem;
  }
}
