/*
 * Journal of Prayers(TM) - ui.css
 * Copyright (c) 2026 Spark Fire Technologies. All rights reserved. Proprietary.
 *
 * Everything around the book: the top bar, the scripture picker that drops
 * down inside a page, and the sign-in / unlock surfaces.
 */

/* ---------- top bar ---------- */

.chrome {
  /* value lives on :root; kept here for the sticky header itself */
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem clamp(.75rem, 2.5vw, 1.75rem);
  background: linear-gradient(180deg, rgba(14, 16, 53, .96), rgba(14, 16, 53, .82));
  border-bottom: 1px solid rgba(217, 183, 71, .28);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  font-family: var(--display);
  color: var(--gold-300);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .95rem;
  white-space: nowrap;
}
.brand small {
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .16em;
  color: rgba(242, 227, 179, .5);
}

.chrome-meta {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chrome-status {
  font-family: var(--sans);
  font-size: .74rem;
  color: rgba(242, 227, 179, .62);
  display: flex;
  gap: .55rem;
  align-items: center;
}
.chrome-status span + span::before {
  content: '·';
  margin-right: .55rem;
  opacity: .5;
}

.goto-date {
  padding: .42rem .6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(217, 183, 71, .34);
  background: rgba(8, 10, 32, .6);
  color: var(--gold-200);
  font-family: var(--sans);
  font-size: .8rem;
}

@media (max-width: 720px) {
  .brand small, .chrome-status { display: none; }
  .chrome { gap: .5rem; }
}

/*
 * The top bar on a phone.
 *
 * The bar is one flex row with the actions pushed right by margin-left:auto.
 * On a 390px screen the brand claimed 184px of it and the six controls were
 * left to wrap inside the 174px that remained - four stacked rows, 188px of
 * chrome above a journal that then had 640px to live in. Give the brand its
 * own line and let the actions use the whole width, and the same controls fit
 * in two rows.
 *
 * viewport-fit=cover is set, so the bar is also what sits under the notch and
 * has to pay for it.
 */
@media (max-width: 620px), (max-height: 560px) and (pointer: coarse) {
  .chrome {
    flex-wrap: wrap;
    gap: .4rem .45rem;
    padding: calc(.5rem + env(safe-area-inset-top, 0px))
             calc(.7rem + env(safe-area-inset-right, 0px))
             .5rem
             calc(.7rem + env(safe-area-inset-left, 0px));
  }
  .brand { flex: 1 0 100%; font-size: 1rem; }
  .chrome-meta {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    gap: .4rem;
  }
  .chrome-meta .btn {
    font-size: .8rem;
    padding: .4rem .65rem;
    min-height: 38px;
  }
  /* 1rem, not smaller: see the note on the 16px floor in base.css. */
  .goto-date { min-width: 0; width: 9.2rem; font-size: 1rem; min-height: 38px; }
}

/* ---------- page tools ---------- */

.page-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .7rem;
  margin-top: .5rem;
  padding-top: .35rem;
}
.save-state {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .75;
  min-height: 1em;
}

.date-input {
  border: 0;
  border-bottom: 1px solid var(--ink-soft);
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: inherit;
  padding: 0 .3rem .1rem;
  min-width: 9rem;
}
.date-input:focus { outline: none; border-bottom-color: var(--gold-600); background: rgba(217, 183, 71, .1); }

/* ---------- scripture picker ---------- */

.scripture-tool { position: relative; }

.scripture-toggle {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: .3rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(166, 124, 26, .45);
  background: rgba(217, 183, 71, .12);
  color: var(--ink);
  font-family: var(--sans);
  font-size: calc(var(--line, 1rem) * 0.42);
  letter-spacing: .02em;
  line-height: 1.5;
  cursor: pointer;
}
.scripture-toggle:hover { background: rgba(217, 183, 71, .22); }
.scripture-toggle-icon { color: var(--gold-600); }
.scripture-caret { transition: transform .18s ease; font-size: .6rem; }
.scripture-tool.is-open .scripture-caret { transform: rotate(180deg); }

.scripture-panel {
  position: absolute;
  right: 0;
  top: 100%;
  width: min(22rem, 62vw);
  z-index: 8;
  margin-top: .35rem;
  padding: .6rem;
  border: 1px solid rgba(166, 124, 26, .38);
  border-radius: 6px;
  background: rgba(255, 253, 244, .96);
  box-shadow: 0 6px 18px rgba(40, 30, 8, .16);
  max-height: 15rem;
  overflow: auto;
}
.scripture-panel[hidden] { display: none; }

.scripture-tabs { display: flex; gap: .3rem; margin-bottom: .5rem; }
.scripture-tab {
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: .25rem .5rem;
  border-radius: 4px;
  cursor: pointer;
}
.scripture-tab.is-active { background: rgba(217, 183, 71, .25); color: var(--ink); font-weight: 700; }

.scripture-selects { display: flex; gap: .35rem; flex-wrap: wrap; }
.scripture-select {
  flex: 1 1 6rem;
  min-width: 5.5rem;
  padding: .3rem .35rem;
  border: 1px solid rgba(166, 124, 26, .4);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: .76rem;
}

.scripture-preview {
  margin: .55rem 0 .4rem;
  padding: .5rem .65rem;
  border-left: 3px solid var(--gold-500);
  background: rgba(217, 183, 71, .1);
  font-family: var(--serif);
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink);
  border-radius: 0 4px 4px 0;
}
.scripture-preview[data-empty="true"] { color: var(--ink-soft); font-style: italic; }

.scripture-actions { display: flex; justify-content: flex-end; }

.scripture-search {
  width: 100%;
  padding: .4rem .55rem;
  border: 1px solid rgba(166, 124, 26, .4);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--ink);
  background: #fff;
}

.scripture-results { margin-top: .45rem; display: grid; gap: .3rem; }
.scripture-result {
  display: grid;
  gap: .12rem;
  text-align: left;
  padding: .4rem .5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: rgba(217, 183, 71, .08);
  cursor: pointer;
  font-family: var(--serif);
  color: var(--ink);
}
.scripture-result:hover { background: rgba(217, 183, 71, .2); border-color: rgba(166, 124, 26, .35); }
.scripture-result strong { font-family: var(--sans); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--gold-600); }
.scripture-result span { font-size: .8rem; line-height: 1.45; }

.scripture-empty, .scripture-credit {
  font-family: var(--sans);
  font-size: .68rem;
  color: var(--ink-soft);
  opacity: .8;
  margin: .5rem 0 0;
}
.scripture-credit { text-align: right; font-style: italic; }

/* ---------- devotion card ---------- */

.devotion {
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(217, 183, 71, .22), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.devotion-eyebrow {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 1rem;
}
.devotion-title {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(242, 227, 179, .68);
  font-size: .85rem;
  margin: 0 0 .5rem;
}
.devotion-text {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  line-height: 1.6;
  color: var(--paper);
  margin: 0 0 1rem;
}
.devotion-reference {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin: 0;
}
.devotion-version {
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .16em;
  color: rgba(242, 227, 179, .45);
  margin: .3rem 0 0;
}
.devotion-rule {
  width: 4rem;
  height: 1px;
  margin: 1.2rem auto;
  background: linear-gradient(to right, transparent, var(--gold-500), transparent);
}

/* ---------- landing / auth ---------- */

/*
 * Three columns on a wide screen: the invitation, the book, then the form.
 * The invitation is the reason someone is here, so it leads; the book is the
 * thing itself; the form is what they do about it.
 */
.landing {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(18rem, 1.05fr) minmax(14rem, 0.85fr) minmax(20rem, 1.1fr);
  align-items: center;
  align-content: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  /* viewport-fit=cover puts the page under the notch and the home indicator,
     so the padding has to clear them. env() is 0 everywhere else. */
  padding:
    calc(clamp(1.25rem, 3vw, 2.5rem) + env(safe-area-inset-top, 0px))
    calc(clamp(1.25rem, 3vw, 2.5rem) + env(safe-area-inset-right, 0px))
    calc(clamp(1.25rem, 3vw, 2.5rem) + env(safe-area-inset-bottom, 0px))
    calc(clamp(1.25rem, 3vw, 2.5rem) + env(safe-area-inset-left, 0px));
  max-width: 104rem;
  margin: 0 auto;
}
@supports (min-height: 100dvh) {
  /* 100vh on a phone is the viewport with the toolbars hidden, so a page sized
     to it is always a little taller than the screen actually is. */
  .landing { min-height: 100dvh; }
}

/*
 * Grid items refuse to shrink below their content's minimum size unless told
 * to, and a long unbroken string - an email address, a scripture reference -
 * is exactly such a content minimum. Without this a single wide word can push
 * a column past the viewport and give the whole page a sideways scroll.
 */
.landing > * { min-width: 0; }

@media (max-width: 1280px) {
  /* Not enough room for three: the invitation moves above the pair. */
  .landing { grid-template-columns: minmax(14rem, 1fr) minmax(18rem, 1.1fr); }
  .landing-invite { grid-column: 1 / -1; max-width: 60rem; margin: 0 auto; }
}

.landing-art {
  display: grid;
  place-items: center;
}
.landing-art img {
  /* Bound by height as well as width so the cover never pushes the sign-in
     form off a laptop screen. */
  width: min(100%, 24rem);
  max-height: min(76vh, 40rem);
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(217, 183, 71, .25);
  transform: perspective(1400px) rotateY(-7deg) rotateX(1.5deg);
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.landing-art img:hover { transform: perspective(1400px) rotateY(-2deg); }

.landing-panel {
  background: rgba(9, 11, 38, .68);
  border: 1px solid rgba(217, 183, 71, .26);
  border-radius: 10px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-lg);
  color: var(--paper);
}
.landing-panel h1 {
  margin: 0 0 .3rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold-300);
  letter-spacing: .04em;
}
.landing-panel .tagline {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(242, 227, 179, .8);
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
}

.auth-tabs { display: flex; gap: .4rem; margin-bottom: 1.1rem; }
.auth-tab {
  flex: 1;
  padding: .55rem;
  border: 1px solid rgba(217, 183, 71, .3);
  background: transparent;
  color: rgba(242, 227, 179, .7);
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
}
.auth-tab.is-active { background: rgba(217, 183, 71, .2); color: var(--gold-200); border-color: var(--gold-500); }

.strength { display: flex; gap: .22rem; margin-top: .45rem; }
.strength i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(242, 227, 179, .16);
}
.strength i.on { background: var(--gold-400); }
.strength-label {
  font-family: var(--sans);
  font-size: .7rem;
  color: rgba(242, 227, 179, .62);
  margin-top: .3rem;
}

.zk-note {
  margin-top: 1.1rem;
  padding: .8rem .95rem;
  border-left: 2px solid var(--gold-500);
  background: rgba(217, 183, 71, .09);
  font-family: var(--sans);
  font-size: .76rem;
  line-height: 1.6;
  color: rgba(242, 227, 179, .78);
  border-radius: 0 4px 4px 0;
}
.zk-note b { color: var(--gold-300); }

.landing-foot {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--sans);
  font-size: .72rem;
  color: rgba(242, 227, 179, .38);
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .landing { grid-template-columns: 1fr; }
  .landing-art { order: -1; }
  .landing-art img { width: min(70%, 17rem); transform: none; }
  .landing-invite { order: 1; }
}

/* ---------- the invitation ---------- */

.landing-invite {
  color: var(--paper);
  font-family: var(--serif);
}

.landing-invite h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  line-height: 1.15;
  color: var(--gold-300);
  letter-spacing: .01em;
}

.landing-invite p {
  margin: 0 0 1rem;
  /* Deliberately larger than UI text: this is meant to be read, not skimmed. */
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.72;
  color: rgba(253, 250, 240, .9);
}
.landing-invite p b { color: var(--gold-200); font-weight: 600; }

.invite-steps {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}
.invite-steps li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .5rem;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.6;
  color: var(--paper);
}
.invite-steps li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: .05em;
  color: var(--gold-500);
  font-size: .85em;
}

.invite-verse {
  margin: 1.4rem 0 0;
  padding: .9rem 0 .2rem 1.1rem;
  border-left: 2px solid var(--gold-500);
  font-style: italic;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--gold-200);
}
.invite-verse cite {
  display: block;
  margin-top: .5rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242, 227, 179, .6);
}

/* ---------- recovery key ---------- */

.auth-links { margin: .9rem 0 0; text-align: center; }

.linkish {
  border: 0;
  background: transparent;
  color: var(--gold-300);
  font-family: var(--sans);
  font-size: .82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: .25rem;
}
.linkish:hover { color: var(--gold-200); }

.recovery-key {
  margin: 1.2rem 0;
  padding: 1rem;
  border: 1px solid var(--gold-500);
  border-radius: 6px;
  background: rgba(8, 10, 32, .6);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  letter-spacing: .12em;
  text-align: center;
  color: var(--gold-200);
  user-select: all;
  word-break: break-all;
}

.recovery-ack {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: .86rem;
  line-height: 1.5;
  color: rgba(242, 227, 179, .85);
  cursor: pointer;
}
.recovery-ack input { margin-top: .15rem; accent-color: var(--gold-500); }

@media print {
  /* Printing the recovery sheet should print the key, not the whole page. */
  body > *:not(#recovery-backdrop) { display: none !important; }
  #recovery-backdrop { position: static; background: none; backdrop-filter: none; }
  #recovery-backdrop .modal { border-color: #000; color: #000; background: #fff; }
  .recovery-key { color: #000; border-color: #000; background: #fff; }
  .modal-actions, .recovery-ack { display: none !important; }
}

/* ---------- subscription plans ---------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: .8rem;
  margin: 1.2rem 0 .4rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(217, 183, 71, .3);
  background: rgba(217, 183, 71, .07);
  color: var(--paper);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
  position: relative;
}
.plan-card:hover:not(:disabled) {
  border-color: var(--gold-400);
  background: rgba(217, 183, 71, .14);
}
.plan-card:active:not(:disabled) { transform: translateY(1px); }
.plan-card:disabled { opacity: .55; cursor: wait; }

.plan-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.plan-amount {
  font-family: var(--display);
  font-size: 1.65rem;
  color: var(--paper);
  line-height: 1.1;
}
.plan-amount small {
  font-family: var(--sans);
  font-size: .8rem;
  color: rgba(242, 227, 179, .6);
  letter-spacing: .02em;
}
.plan-note {
  font-size: .74rem;
  color: rgba(242, 227, 179, .62);
  margin-top: .1rem;
}

/* Called out on whichever plan actually saves money, computed, not hard-coded. */
.plan-card[data-best="true"] { border-color: var(--gold-400); }
.plan-badge {
  position: absolute;
  top: -.6rem;
  right: .7rem;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  padding: .16rem .5rem;
  border-radius: 999px;
  font-weight: 700;
}

.plan-footnote {
  font-family: var(--sans);
  font-size: .74rem;
  line-height: 1.55;
  color: rgba(242, 227, 179, .55);
  margin: .9rem 0 0;
}

.plan-current {
  font-family: var(--sans);
  font-size: .8rem;
  padding: .7rem .9rem;
  border-radius: var(--radius);
  background: rgba(47, 107, 70, .16);
  border: 1px solid rgba(47, 107, 70, .45);
  color: #a8d9bd;
  margin-bottom: .6rem;
}

/* ---------- sharing ---------- */

.share-pieces {
  display: grid;
  gap: .45rem;
  margin: 1rem 0 1.1rem;
}

.share-piece {
  display: grid;
  gap: .18rem;
  text-align: left;
  padding: .6rem .75rem;
  border: 1px solid rgba(217, 183, 71, .28);
  border-radius: 6px;
  background: rgba(217, 183, 71, .07);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color .12s ease, background .12s ease;
}
.share-piece:hover { background: rgba(217, 183, 71, .15); }
.share-piece.is-on { border-color: var(--gold-400); background: rgba(217, 183, 71, .2); }
.share-piece strong {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.share-piece span {
  font-family: var(--serif);
  font-size: .84rem;
  line-height: 1.45;
  color: rgba(253, 250, 240, .85);
}

.share-label,
.export-label {
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 .35rem;
}

.share-preview {
  margin: 0 0 1.1rem;
  padding: .75rem .9rem;
  border-left: 3px solid var(--gold-500);
  background: rgba(8, 10, 32, .5);
  border-radius: 0 4px 4px 0;
  font-family: var(--serif);
  font-size: .85rem;
  line-height: 1.6;
  color: var(--paper);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 11rem;
  overflow: auto;
}

.share-targets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.2rem, 1fr));
  gap: .5rem;
  margin-bottom: 1rem;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .65rem .35rem;
  border: 1px solid rgba(217, 183, 71, .3);
  border-radius: 6px;
  background: rgba(217, 183, 71, .07);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .72rem;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, transform .1s ease;
}
.share-btn:hover { background: rgba(217, 183, 71, .18); border-color: var(--gold-400); }
.share-btn:active { transform: translateY(1px); }
.share-icon {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--gold-300);
}

.share-foot {
  font-family: var(--sans);
  font-size: .72rem;
  line-height: 1.55;
  color: rgba(242, 227, 179, .55);
  margin: .2rem 0 0;
}
.share-foot b { color: var(--gold-300); }

/* ---------- export ---------- */

.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .6rem;
  margin: 1.1rem 0;
}

.export-btn {
  display: grid;
  gap: .2rem;
  text-align: left;
  padding: .85rem .9rem;
  border: 1px solid rgba(217, 183, 71, .3);
  border-radius: 6px;
  background: rgba(217, 183, 71, .07);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--sans);
  transition: background .12s ease, border-color .12s ease, transform .1s ease;
}
.export-btn:hover { background: rgba(217, 183, 71, .17); border-color: var(--gold-400); }
.export-btn:active { transform: translateY(1px); }
.export-btn strong {
  font-family: var(--display);
  font-size: 1.02rem;
  color: var(--gold-200);
}
.export-btn span {
  font-size: .74rem;
  color: rgba(242, 227, 179, .62);
}

/* ---------- tech support ---------- */

#support-form {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  margin: 1rem 0 .8rem;
}
#support-form .field { flex: 1; margin-bottom: 0; }
#support-form input {
  width: 100%;
  padding: .6rem .75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(217, 183, 71, .34);
  background: rgba(8, 10, 32, .55);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .9rem;
}
#support-form input:focus { border-color: var(--gold-400); outline: none; }
#support-ask { white-space: nowrap; padding-top: .62rem; padding-bottom: .62rem; }

.support-answer {
  margin: 0 0 1.1rem;
  padding: .85rem 1rem;
  border-left: 3px solid var(--gold-500);
  background: rgba(217, 183, 71, .1);
  border-radius: 0 5px 5px 0;
}
.support-answer strong {
  display: block;
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: .4rem;
}
.support-answer p {
  margin: 0;
  font-family: var(--sans);
  font-size: .88rem;
  line-height: 1.65;
  color: var(--paper);
  white-space: pre-wrap;
}
.support-answer .btn { margin-top: .8rem; }

.support-fixes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: .5rem;
  margin-bottom: 1.1rem;
}

.support-fix {
  display: grid;
  gap: .18rem;
  text-align: left;
  padding: .7rem .8rem;
  border: 1px solid rgba(217, 183, 71, .3);
  border-radius: 6px;
  background: rgba(217, 183, 71, .07);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--sans);
  transition: background .12s ease, border-color .12s ease, transform .1s ease;
}
.support-fix:hover { background: rgba(217, 183, 71, .17); border-color: var(--gold-400); }
.support-fix:active { transform: translateY(1px); }
.support-fix strong { font-size: .84rem; color: var(--gold-200); }
.support-fix span { font-size: .72rem; line-height: 1.45; color: rgba(242, 227, 179, .6); }

.support-diag summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--gold-300);
  padding: .4rem 0;
}
.support-diag summary:hover { color: var(--gold-200); }

.support-report {
  margin: .6rem 0;
  padding: .7rem .85rem;
  background: rgba(8, 10, 32, .6);
  border: 1px solid rgba(217, 183, 71, .2);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  line-height: 1.6;
  color: rgba(253, 250, 240, .82);
  white-space: pre-wrap;
  max-height: 14rem;
  overflow: auto;
}

/* ==========================================================================
   Demo (myjournalofprayers.org only) and paid activation
   --------------------------------------------------------------------------
   Additive: nothing here is referenced by index.html or app.html, so the free
   site's rendered pages are byte-for-byte unaffected by this block existing.
   ========================================================================== */

.demo-badge {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--gold-400);
  padding: .3rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-lede {
  font-family: var(--sans);
  font-size: .88rem;
  color: rgba(242, 227, 179, .78);
  line-height: 1.55;
  margin: 0 0 .2rem;
}

/* A label and its control on one row, for the currency picker beside the
   plan grid rather than stacked above it like a full sign-up field. */
.field-inline {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .9rem 0 0;
}
.field-inline > span {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-300);
  flex: 0 0 auto;
}
.field-inline select {
  flex: 1 1 auto;
  padding: .5rem .7rem;
  border-radius: var(--radius);
  border: 1px solid rgba(217, 183, 71, .34);
  background: rgba(8, 10, 32, .55);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem; /* the 16px floor - see base.css - applies here too on a phone */
}

.plan-card.is-picked {
  border-color: var(--gold-400);
  background: rgba(217, 183, 71, .18);
  box-shadow: 0 0 0 1px rgba(217, 183, 71, .4) inset;
}

.plan-foot {
  margin-top: 1rem;
}

/* ---------- activation page ---------- */

.activate-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}
@supports (min-height: 100dvh) {
  .activate-wrap { min-height: 100dvh; }
}

.activate-card {
  width: min(30rem, 100%);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid rgba(217, 183, 71, .3);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.75rem;
  color: var(--paper);
}

.activate-brand {
  font-family: var(--display);
  color: var(--gold-300);
  font-size: 1.4rem;
  margin: 0 0 1.2rem;
  text-align: center;
}

.activate-status {
  font-family: var(--sans);
  font-size: .92rem;
  color: rgba(242, 227, 179, .82);
  line-height: 1.6;
  text-align: center;
  margin: 0 0 1rem;
}

#activate-form .activate-status { text-align: left; }
