:root {
  color-scheme: light;
  --display-font: Georgia, "Times New Roman", serif;
  --ink: #1f2a2d;
  --muted: #5f6f72;
  --line: #d9e1dc;
  --paper: #fbfbf7;
  --soft: #eef5ef;
  --mint: #cfe8d7;
  --teal: #1e6665;
  --teal-dark: #124748;
  --gold: #d7a84c;
  --rose: #f5dedc;
  --white: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.profile-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  align-items: center;
  background: rgba(251, 251, 247, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.brand-mark {
  align-items: center;
  background: var(--teal);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  color: var(--teal-dark);
  font-family: var(--display-font);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.brand-motto {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
  line-height: 1.15;
}

nav {
  align-items: center;
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 1.08rem;
  font-weight: 700;
}

nav a {
  border-bottom: 2px solid transparent;
  padding: 8px 7px;
}

nav a:hover {
  border-bottom-color: var(--gold);
  color: var(--teal-dark);
}

.account-toggle {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  position: relative;
}

.account-toggle:hover,
.account-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  box-shadow: 0 8px 22px rgba(31, 42, 45, 0.08);
}

.account-dot {
  background: var(--muted);
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.account-dot.signed-in {
  background: var(--teal);
}

.account-alert {
  align-items: center;
  background: #bd3f32;
  border: 2px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-content: center;
  min-width: 22px;
  padding: 2px 6px;
}

.account-panel {
  background: rgba(251, 251, 247, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(31, 42, 45, 0.18);
  display: grid;
  gap: 18px;
  max-height: min(720px, calc(100vh - 96px));
  overflow: auto;
  padding: 18px;
  position: fixed;
  right: clamp(14px, 4vw, 56px);
  top: 82px;
  width: min(920px, calc(100vw - 28px));
  z-index: 10;
}

.account-panel-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 14px;
}

.account-grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(210px, 0.8fr) minmax(260px, 1fr) minmax(240px, 0.9fr);
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.profile-card h3 {
  color: var(--teal-dark);
  font-family: var(--display-font);
  font-size: 1.35rem;
  margin: 0;
}

.profile-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.profile-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.profile-card dl div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 10px;
}

.profile-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-card dd {
  color: var(--ink);
  font-weight: 750;
  margin: 0;
  overflow-wrap: anywhere;
}

main {
  overflow: hidden;
}

.hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(18, 71, 72, 0.82), rgba(30, 102, 101, 0.24)),
    url("hero-prayer-circle.png");
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  min-height: 70vh;
  padding: clamp(72px, 12vw, 140px) clamp(18px, 5vw, 72px) 44px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  max-width: 850px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-auth-prompt {
  align-items: center;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 18px;
  max-width: 650px;
  padding: 14px;
}

.hero-auth-prompt p {
  flex: 1 1 260px;
  font-size: 0.98rem;
  line-height: 1.45;
  margin: 0;
}

.hero-auth-prompt div {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.button.compact {
  min-height: 42px;
  padding: 0 14px;
}

.button:disabled,
.mini-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.button.primary {
  background: var(--gold);
  color: #241b0a;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.button.outline {
  background: transparent;
  border-color: var(--line);
  color: var(--teal-dark);
}

.button.full {
  width: 100%;
}

.prayer-focus {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  padding: 22px;
  backdrop-filter: blur(10px);
}

.prayer-focus span {
  display: block;
  font-size: 0.83rem;
  margin-bottom: 8px;
  opacity: 0.8;
}

.prayer-focus strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.25;
}

.daily-verse {
  align-items: center;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  padding: clamp(28px, 5vw, 58px) clamp(18px, 5vw, 72px);
}

.daily-verse blockquote {
  border-left: 4px solid var(--gold);
  margin: 0;
  padding: 6px 0 6px 24px;
}

.daily-verse blockquote p {
  color: var(--teal-dark);
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
}

.daily-verse cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.quiet-time-band {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(18, 71, 72, 0.96), rgba(30, 102, 101, 0.84)),
    var(--teal-dark);
  border-top: 1px solid var(--line);
  color: var(--white);
  display: grid;
  gap: clamp(24px, 4vw, 52px);
  grid-template-columns: minmax(240px, 0.72fr) minmax(420px, 1.28fr);
  padding: clamp(38px, 6vw, 86px) clamp(18px, 5vw, 72px);
}

.quiet-time-copy p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  max-width: 560px;
}

.quiet-time-note {
  border-left: 4px solid var(--gold);
  display: grid;
  gap: 6px;
  margin-top: 28px;
  padding-left: 16px;
}

.quiet-time-note span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.quiet-time-note strong {
  color: var(--white);
  font-family: var(--display-font);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.2;
  max-width: 420px;
}

.quiet-player {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(10, 36, 36, 0.28);
  color: var(--ink);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.quiet-player-heading {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.quiet-player-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.quiet-player-heading strong {
  color: var(--teal-dark);
  font-family: var(--display-font);
  font-size: 1.45rem;
  line-height: 1.1;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--teal-dark);
  border: 1px solid rgba(18, 71, 72, 0.16);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.video-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.stats {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats div {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 24px clamp(18px, 5vw, 72px);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  align-items: center;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 2rem;
  gap: 8px;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.stats span {
  color: var(--muted);
}

.auth-panel,
.encouragement-inbox {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.encouragement-inbox h3 {
  color: var(--teal-dark);
  font-family: var(--display-font);
  font-size: 1.35rem;
  margin: 0;
}

.encouragement-list {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.encouragement-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.encouragement-note-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.encouragement-note p {
  color: var(--ink);
  margin: 0;
}

.encouragement-note small,
.muted-note {
  color: var(--muted);
}

.message-dialog {
  align-items: center;
  background: rgba(31, 42, 45, 0.38);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 60;
}

.message-dialog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(31, 42, 45, 0.22);
  display: grid;
  gap: 16px;
  max-width: 520px;
  padding: 24px;
  width: min(100%, 520px);
}

.message-dialog-card h2 {
  font-family: var(--display-font);
  font-size: 1.8rem;
  margin: 0;
}

.message-dialog-preview {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: var(--ink);
  margin: 0;
  padding: 12px;
}

.message-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  padding: clamp(28px, 5vw, 72px);
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(31, 42, 45, 0.08);
}

.prayer-form {
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.safety-note {
  background: #fff7e5;
  border: 1px solid rgba(215, 168, 76, 0.45);
  border-radius: 6px;
  color: #64512c;
  line-height: 1.45;
  margin: 0;
  padding: 12px;
}

.section-heading {
  margin-bottom: 4px;
}

.section-heading.with-filter {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 24px;
}

label {
  color: var(--ink);
  display: grid;
  font-weight: 750;
  gap: 8px;
}

.optional-text {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.field-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: -6px 0 0;
}

input,
select,
textarea {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 44px;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  line-height: 1.45;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(30, 102, 101, 0.14);
}

.check-row {
  align-items: start;
  color: var(--muted);
  display: flex;
  font-weight: 650;
  line-height: 1.4;
}

.check-row input {
  flex: 0 0 auto;
  margin-top: 2px;
  min-height: auto;
  width: auto;
}

.privacy-row {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

input:disabled {
  background: #eef1ed;
  color: var(--muted);
  cursor: not-allowed;
}

.form-note {
  color: var(--teal-dark);
  margin: 0;
  min-height: 1.4em;
}

.form-note.error {
  color: #a33d35;
}

.hidden {
  display: none !important;
}

.requests-panel {
  min-height: 620px;
}

.requests-panel select {
  max-width: 180px;
}

.prayer-list {
  display: grid;
  gap: 14px;
  max-height: 940px;
  overflow-y: auto;
  padding: 20px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

.prayer-card {
  background: linear-gradient(180deg, #ffffff, #fbfcfa);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.prayer-card.highlighted {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(215, 168, 76, 0.18);
}

.prayer-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  gap: 10px;
}

.tag {
  background: var(--soft);
  border-radius: 999px;
  color: var(--teal-dark);
  font-weight: 800;
  padding: 5px 10px;
}

.prayer-card p {
  font-size: 1.04rem;
  line-height: 1.55;
  margin: 0;
}

.prayer-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-button {
  background: var(--teal);
  border: 0;
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
  min-height: 40px;
  padding: 0 13px;
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 800;
  min-height: 40px;
  padding: 0 13px;
}

.danger-button {
  border-color: rgba(163, 61, 53, 0.34);
  color: #8f2f28;
}

.danger-button:hover {
  background: #fff1ef;
}

.ghost-link {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--teal-dark);
  display: inline-flex;
  font-weight: 800;
  min-height: 40px;
  padding: 0 13px;
}

.prayed-count {
  color: var(--muted);
  font-size: 0.92rem;
}

.share-panel {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}

.copied-note {
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.empty-state {
  align-items: center;
  background: var(--soft);
  border: 1px dashed #b7c9bf;
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  min-height: 250px;
  padding: 24px;
  text-align: center;
}

.testimony-band {
  align-items: start;
  background: var(--white);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 0.9fr) minmax(0, 1.25fr);
  padding: clamp(34px, 6vw, 80px) clamp(18px, 5vw, 72px);
}

.testimony-intro p {
  color: var(--muted);
  line-height: 1.7;
}

.testimony-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.testimony-list {
  display: grid;
  gap: 14px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 6px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

.testimony-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.testimony-card p {
  line-height: 1.55;
  margin: 0;
}

.testimony-card small {
  color: var(--muted);
  font-weight: 750;
}

.testimony-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.reaction-button {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
}

.reaction-button:hover,
.reaction-button.active {
  background: #fff7e5;
  border-color: rgba(215, 168, 76, 0.7);
}

.reaction-button strong {
  color: var(--ink);
  font-size: 0.86rem;
}

footer {
  color: var(--muted);
  padding: 28px clamp(18px, 5vw, 72px);
}

@media (max-width: 900px) {
  .hero,
  .daily-verse,
  .quiet-time-band,
  .workspace,
  .testimony-band {
    grid-template-columns: 1fr;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 680px;
  }

  .prayer-group-list {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .account-toggle {
    align-self: stretch;
  }

  .account-panel {
    max-height: calc(100vh - 142px);
    right: 14px;
    top: 130px;
  }

  .hero {
    min-height: 720px;
    padding-top: 52px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stats div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .section-heading.with-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .requests-panel select {
    max-width: none;
  }
}
