/* ============================================================================
   Becoming the Woman God Designed — app styles

   Type scale is a 1.25 minor third off a 16px base, so headings relate to body
   text by ratio instead of by eye. Spacing is a 4px grid exposed as --s1..--s8;
   every margin and padding below picks from it, which is what keeps rhythm
   consistent across screens that were built at different times.

   Colour comes from the cover artwork: wine for text and emphasis, cream and
   blush for ground, gold reserved for small accents only — used at body size it
   fails contrast on cream, so it never carries text.
   ============================================================================ */

:root {
  --color-cream: #faf6f0;
  --color-cream-soft: #f3ece2;
  --color-blush: #f5e9e6;
  --color-blush-deep: #efd9d4;
  --color-ink: #2b2420;
  --color-ink-soft: #55483f;
  --color-ink-mute: #6f6259;
  --color-wine: #5f2a3a;
  --color-wine-dark: #4a2130;
  --color-wine-tint: #f0e2e5;
  --color-gold: #b68a4e;        /* decorative only: rules, borders, icon strokes */
  --color-gold-text: #8e5c2a;   /* the same hue, dark enough to carry small text
                                   at WCAG AA on every ground it lands on */
  --color-gold-soft: #d9c7a8;
  --color-border: #e6dbc9;
  --color-border-soft: #efe6d9;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-script: "Great Vibes", "Playfair Display", cursive;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* 1.25 minor third, 16px base */
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.25rem;
  --t-xl: 1.5rem;
  --t-2xl: 1.875rem;
  --t-3xl: 2.25rem;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(95, 42, 58, .05), 0 2px 8px rgba(95, 42, 58, .04);
  --shadow: 0 2px 6px rgba(95, 42, 58, .06), 0 12px 28px rgba(95, 42, 58, .07);
  --shadow-lg: 0 8px 20px rgba(95, 42, 58, .10), 0 24px 48px rgba(95, 42, 58, .10);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 62px;
  --measure: 34rem;          /* ~68 characters — the comfortable reading column */
}

* { box-sizing: border-box; }

/* The hidden attribute loses to any display declaration in the stylesheet, so
   .bottom-nav's display:grid was keeping the tab bar on screen for a locked
   user. Make hidden win everywhere. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.serif { font-family: var(--font-serif); }
.script { font-family: var(--font-script); }

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 600; }
p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

.icon { width: 22px; height: 22px; display: block; flex: none; }

/* Duotone: the tinted body sits under the stroke. Knocked well back so it
   reads as weight, not as a second colour. */
.icon .fill { fill: currentColor; opacity: .16; }

/* In the tab bar the fill is the active state — inactive items are stroke
   only, so the current tab is obvious without a second icon set. */
.bottom-nav button .icon .fill,
.sidebar nav button .icon .fill { opacity: 0; transition: opacity .18s; }
.bottom-nav button.active .icon .fill,
.sidebar nav button.active .icon .fill { opacity: .2; }

/* On the wine affirmation and primary buttons the tint would muddy the
   glyph against a dark ground. */
.btn-primary .icon .fill, .affirmation .icon .fill { opacity: .28; }

/* Everything focusable gets the same visible ring. */
:focus-visible {
  outline: 2px solid var(--color-wine);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------- layout -- */

#app { padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + var(--s5)); }

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--s5);
}
.wrap-narrow { max-width: var(--measure); }

.screen { animation: rise .32s cubic-bezier(.22, .8, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

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

.top-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  min-height: 56px;
  background: rgba(250, 246, 240, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top-bar.scrolled { border-bottom-color: var(--color-border-soft); }

.top-bar-title {
  flex: 1; min-width: 0;
  font-size: var(--t-md);
  font-weight: 600;
  text-align: center;
  color: var(--color-wine);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-bar-title.script { font-size: var(--t-2xl); line-height: 1.1; font-weight: 400; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: none; background: transparent;
  color: var(--color-wine);
  border-radius: 50%;
  cursor: pointer;
  transition: background .18s;
}
.icon-btn:hover { background: var(--color-wine-tint); }
.icon-btn:active { transform: scale(.94); }

/* ------------------------------------------------------------- greeting -- */

.greeting { padding: var(--s5) 0 var(--s4); }
.greeting h1 {
  font-size: var(--t-2xl);
  color: var(--color-wine);
  font-weight: 500;
  letter-spacing: -.01em;
}
.greeting p {
  margin: var(--s2) 0 0;
  color: var(--color-ink-mute);
  font-size: var(--t-sm);
  letter-spacing: .01em;
}

/* ----------------------------------------------------------- hero card -- */

.hero {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-blush);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .22s cubic-bezier(.22,.8,.3,1), box-shadow .22s;
}
.hero:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hero:active { transform: translateY(0) scale(.995); }

.hero-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(245,233,230,0) 38%, rgba(245,233,230,.85) 78%, var(--color-blush) 100%);
}
.hero-body { position: relative; padding: 0 var(--s5) var(--s5); margin-top: -38px; }

.eyebrow {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-gold-text);
}
/* Personal Journal vs. Devotional Reflection: same label style, the wine
   variant marks entries that aren't tied to a devotional day. */
.eyebrow-wine { color: var(--color-wine); }
.list-entry .eyebrow { margin-bottom: var(--s2); }
.hero-title {
  font-size: var(--t-2xl);
  color: var(--color-wine);
  font-weight: 500;
  margin: var(--s2) 0 var(--s3);
  letter-spacing: -.01em;
}
.hero-verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--color-ink-soft);
}
.hero-verse cite {
  display: block;
  margin-top: var(--s2);
  font-style: normal;
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
}
.hero-cta { margin-top: var(--s5); }

/* --------------------------------------------------------------- stats -- */

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s5); }
.stat {
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  padding: var(--s4) var(--s2);
  text-align: center;
}
.stat-num { font-family: var(--font-serif); font-size: var(--t-xl); color: var(--color-wine); line-height: 1; }
.stat-label {
  margin-top: var(--s2);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-ink-mute);
}

/* ------------------------------------------------------------ progress -- */

.progress-wrap { margin: var(--s6) 0 var(--s5); }
.progress-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: var(--t-sm); color: var(--color-ink-soft); margin-bottom: var(--s2);
}
.progress-label b { color: var(--color-wine); font-weight: 600; }
.progress-track { height: 7px; border-radius: 99px; background: var(--color-cream-soft); overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--color-wine), #8d4a5c);
  transition: width .5s cubic-bezier(.22,.8,.3,1);
}

/* ------------------------------------------------------------- actions -- */

.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); margin-top: var(--s5); }
.quick {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  padding: var(--s4) var(--s1);
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-wine);
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-align: center;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  min-height: 44px;
}
.quick:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--color-gold-soft); }
.quick:active { transform: translateY(0) scale(.97); }
.quick .icon { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- cards -- */

.card {
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  padding: var(--s5);
  margin-bottom: var(--s4);
  box-shadow: var(--shadow-sm);
}
.card h2 {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin-bottom: var(--s3);
}
.card p { color: var(--color-ink-soft); }

.section-title {
  font-family: var(--font-serif);
  font-size: var(--t-xl);
  color: var(--color-wine);
  font-weight: 500;
  margin: var(--s6) 0 var(--s4);
}

/* ------------------------------------------------------------ day index -- */

.week-heading {
  display: flex; align-items: center; gap: var(--s3);
  margin: var(--s6) 0 var(--s4);
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-gold-text);
}
.week-heading::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }

.day-card {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s2);
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  min-height: 60px;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.day-card:hover { transform: translateX(2px); border-color: var(--color-gold-soft); box-shadow: var(--shadow-sm); }
.day-card.complete { background: linear-gradient(90deg, var(--color-wine-tint), #fff 55%); }

.day-num {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-cream-soft);
  color: var(--color-wine);
  font-family: var(--font-serif); font-size: var(--t-base);
}
.day-card.complete .day-num { background: var(--color-wine); color: var(--color-cream); }

.day-info { flex: 1; min-width: 0; display: block; }
.day-title { display: block; font-weight: 600; color: var(--color-ink); font-size: var(--t-base); }
.day-sub { display: block; font-size: var(--t-xs); color: var(--color-ink-mute); margin-top: 1px; }
.day-flags { display: flex; align-items: center; gap: var(--s2); color: var(--color-gold); }
.day-flags .icon { width: 18px; height: 18px; }
.day-flags .done { color: var(--color-wine); }

/* ------------------------------------------------------------------ day -- */

.day-hero { position: relative; margin: 0 calc(-1 * var(--s5)) var(--s5); }
.day-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 30%; display: block; }
.day-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250,246,240,0) 30%, rgba(250,246,240,.9) 80%, var(--color-cream) 100%);
}
.day-head { position: relative; margin-top: -52px; padding: 0 var(--s5); text-align: center; }
.day-title-lg {
  font-size: var(--t-3xl);
  color: var(--color-wine);
  font-weight: 500;
  margin: var(--s2) 0 0;
  letter-spacing: -.015em;
}

/* Scripture is the emotional anchor of the screen, so it gets the largest
   optical weight — not a card competing with six identical siblings. */
.scripture {
  margin: var(--s6) 0;
  padding: var(--s5) var(--s4);
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.scripture blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--t-lg);
  font-style: italic;
  line-height: 1.55;
  color: var(--color-wine);
}
.scripture cite {
  display: block; margin-top: var(--s3);
  font-style: normal; font-family: var(--font-sans);
  font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-gold-text);
}

.hebrew {
  text-align: center;
  padding: var(--s5);
  background: var(--color-cream-soft);
  border-radius: var(--radius);
  margin-bottom: var(--s5);
}
.hebrew-word {
  font-size: var(--t-2xl);
  color: var(--color-wine);
  line-height: 1.8;
  margin: 0;
  unicode-bidi: isolate;   /* keep the Hebrew run from reordering its neighbours */
}
.hebrew-roman {
  margin: var(--s1) 0 var(--s3);
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-gold-text);
}
.hebrew-meaning { font-size: var(--t-sm); color: var(--color-ink-soft); margin: 0; }

/* Devotional body: prose, not a card. Longer line-height and a capped measure
   are what make a 250-word passage readable on a phone. */
.prose { max-width: var(--measure); margin: 0 auto var(--s6); }
.prose p { font-size: var(--t-md); line-height: 1.8; color: var(--color-ink-soft); }

.affirmation {
  position: relative;
  margin: var(--s6) 0;
  padding: var(--s6) var(--s5);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--color-wine), var(--color-wine-dark));
  color: var(--color-cream);
  text-align: center;
  overflow: hidden;
}
.affirmation .eyebrow { color: var(--color-gold-soft); }
.affirmation p {
  font-family: var(--font-serif);
  font-size: var(--t-lg);
  font-style: italic;
  line-height: 1.6;
  margin: var(--s3) 0 0;
  color: var(--color-cream);
}

/* --------------------------------------------------- reflection answers -- */

.reflect { margin-bottom: var(--s4); }
.reflect-q {
  display: flex; gap: var(--s3); align-items: flex-start;
  font-family: var(--font-serif);
  font-size: var(--t-md);
  color: var(--color-wine);
  margin-bottom: var(--s3);
  line-height: 1.5;
}
.reflect-q span {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-wine-tint);
  font-family: var(--font-sans);
  font-size: var(--t-xs); font-weight: 600;
}

textarea.field {
  width: 100%;
  min-height: 104px;
  padding: var(--s4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.7;
  color: var(--color-ink);
  resize: vertical;
  transition: border-color .18s, background .18s;
}
/* The optional-title input on a Personal entry: same tokens as the textarea
   above, single line. Sharing the .field class means the :focus and
   ::placeholder rules below cover both with no separate ruleset. */
input.field {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  color: var(--color-ink);
  margin-bottom: var(--s4);
  transition: border-color .18s, background .18s;
}
.field:focus {
  outline: none;
  border-color: var(--color-wine);
  background: #fff;
}
.field::placeholder { color: #a89a8e; }
textarea.journal-lg { min-height: 200px; }

/* All | Personal | Devotional — a simple segmented control, the same
   border/radius/spacing tokens as everything else on this screen. */
.filter-row {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s5);
}
.filter-tab {
  flex: 1;
  min-height: 40px;
  padding: 0 var(--s3);
  border: 1px solid var(--color-border);
  border-radius: 99px;
  background: #fff;
  color: var(--color-ink-soft);
  font-family: var(--font-sans);
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s;
}
.filter-tab:hover { border-color: var(--color-gold-soft); }
.filter-tab.active { background: var(--color-wine); border-color: var(--color-wine); color: var(--color-cream); }

.save-hint {
  font-size: var(--t-xs);
  color: var(--color-gold-text);
  min-height: 18px;
  margin-top: var(--s2);
  text-align: right;
  opacity: 0;
  transition: opacity .2s;
}
.save-hint.show { opacity: 1; }

/* ----------------------------------------------------------- action step -- */

.action-step {
  display: flex; gap: var(--s4); align-items: flex-start;
  width: 100%;
  padding: var(--s5);
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  margin-bottom: var(--s4);
  transition: border-color .18s, background .18s;
}
.action-step:hover { border-color: var(--color-gold-soft); }
.action-step .box {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1.6px solid var(--color-gold);
  border-radius: 8px;
  color: transparent;
  transition: background .18s, border-color .18s, color .18s;
}
.action-step .box .icon { width: 16px; height: 16px; }
.action-step.done { background: var(--color-wine-tint); border-color: var(--color-wine); }
.action-step.done .box { background: var(--color-wine); border-color: var(--color-wine); color: var(--color-cream); }
.action-step.done .step-text { color: var(--color-ink-mute); }
.step-text { color: var(--color-ink-soft); }

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px;
  padding: 0 var(--s5);
  border: none; border-radius: 99px;
  font-family: var(--font-sans); font-size: var(--t-base); font-weight: 600;
  cursor: pointer;
  transition: transform .16s, box-shadow .18s, background .18s, color .18s;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--color-wine); color: var(--color-cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-wine-dark); box-shadow: var(--shadow); }
.btn-secondary { background: transparent; color: var(--color-wine); border: 1.5px solid var(--color-border); }
.btn-secondary:hover { border-color: var(--color-wine); }
.btn-secondary.active { background: var(--color-wine-tint); border-color: var(--color-wine); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: var(--t-md); }
.btn:disabled { opacity: .32; cursor: default; }
.nav-row .btn:disabled { visibility: hidden; }
.btn.done { background: var(--color-cream-soft); color: var(--color-wine); box-shadow: none; }

.settings-danger {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: #8a3b3b;
  margin-top: var(--s3);
}
.settings-danger:hover { border-color: #8a3b3b; }

.action-row { display: flex; gap: var(--s3); margin: var(--s6) 0 var(--s4); }
.action-row .btn-primary { flex: 1; }
.action-row .btn-secondary { width: 56px; padding: 0; flex: none; }

/* Completion screen choices, stacked full width. Deliberately not .action-row:
   its .btn-secondary is the 56px icon-only button used beside a day's
   "Mark as complete", which would squeeze these labels into a column. */
.complete-actions { display: grid; gap: var(--s3); margin: var(--s6) 0 var(--s4); }

.nav-row { display: flex; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s6); }
.nav-row .btn { flex: 1; }

/* ---------------------------------------------------------------- lists -- */

.list-entry {
  display: block;
  padding: var(--s4);
  margin-bottom: var(--s2);
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: transform .16s, border-color .16s;
}
.list-entry:hover { transform: translateX(2px); border-color: var(--color-gold-soft); }
.list-entry-top { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; }
.list-entry-title { font-weight: 600; color: var(--color-wine); }
.list-entry-day { font-size: var(--t-xs); color: var(--color-ink-mute); white-space: nowrap; }
.list-entry-excerpt {
  display: block;
  margin-top: var(--s2);
  font-size: var(--t-sm);
  color: var(--color-ink-mute);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  text-align: center;
  padding: var(--s8) var(--s5);
  color: var(--color-ink-mute);
  font-size: var(--t-sm);
}
.empty-state .icon { width: 34px; height: 34px; margin: 0 auto var(--s4); color: var(--color-gold-soft); }
.empty-state strong { display: block; color: var(--color-wine); font-size: var(--t-md); font-weight: 600; margin-bottom: var(--s2); font-family: var(--font-serif); }

.bloom-divider {
  width: 100%; height: 96px;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: .85;
  margin: var(--s6) 0;
  display: block;
}

/* ----------------------------------------------------------- bottom nav -- */

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: var(--safe-bottom);
  background: rgba(250, 246, 240, .93);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-top: 1px solid var(--color-border-soft);
}
.bottom-nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--nav-h);
  border: none; background: transparent;
  color: var(--color-ink-mute);
  font-family: var(--font-sans); font-size: 10px; letter-spacing: .02em;
  cursor: pointer;
  transition: color .18s;
  position: relative;
}
.bottom-nav button .icon { width: 21px; height: 21px; }
.bottom-nav button.active { color: var(--color-wine); }
.bottom-nav button.active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 2.5px; border-radius: 0 0 3px 3px; background: var(--color-wine);
}

/* ---------------------------------------------------------- more sheet -- */

.more-sheet {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(43, 36, 32, .38);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .24s;
}
.more-sheet.show { opacity: 1; pointer-events: auto; }
.more-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--color-cream);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--s4) var(--s4) calc(var(--s5) + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.22,.8,.3,1);
  max-width: 520px; margin: 0 auto;
}
.more-sheet.show .more-sheet-panel { transform: none; }
.more-sheet-grab { width: 38px; height: 4px; border-radius: 99px; background: var(--color-border); margin: 0 auto var(--s4); }
.more-sheet a {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s4);
  border-radius: var(--radius-sm);
  text-decoration: none; color: var(--color-ink);
  font-size: var(--t-base); font-weight: 500;
  min-height: 52px;
  transition: background .16s;
}
.more-sheet a:hover { background: var(--color-cream-soft); }
.more-sheet a .icon { color: var(--color-wine); }
.more-sheet a .chev { margin-left: auto; color: var(--color-gold-soft); width: 18px; height: 18px; }

/* --------------------------------------------------------- unlock gate -- */

.unlock {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s6) var(--s5) calc(var(--s7) + var(--safe-bottom));
  max-width: 460px; margin: 0 auto;
  text-align: center;
}
.unlock-art {
  width: 168px; height: 168px;
  margin: 0 auto var(--s5);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  box-shadow: var(--shadow);
}
.unlock h1 { font-size: var(--t-2xl); color: var(--color-wine); font-weight: 500; line-height: 1.2; }
.unlock-sub { margin: var(--s3) 0 var(--s5); color: var(--color-ink-mute); font-size: var(--t-sm); }
.unlock-input {
  width: 100%; min-height: 52px;
  padding: 0 var(--s4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-sans); font-size: var(--t-base);
  text-align: center; letter-spacing: .04em;
  color: var(--color-ink);
  margin-bottom: var(--s3);
}
.unlock-input:focus { outline: none; border-color: var(--color-wine); }
.unlock-error { color: #8a3b3b; font-size: var(--t-sm); margin-top: var(--s3); line-height: 1.5; }
.unlock-buy { margin-top: var(--s5); font-size: var(--t-sm); color: var(--color-ink-mute); }
.unlock-buy a { color: var(--color-wine); font-weight: 600; }
.unlock-tip {
  font-size: var(--t-sm); line-height: 1.55; text-align: left;
  color: var(--color-ink-soft);
  background: var(--color-wine-tint);
  border: 1px solid var(--color-blush-deep);
  border-radius: var(--radius-sm);
  padding: var(--s3) var(--s4);
  margin: 0 0 var(--s4);
}
.unlock-tip strong { color: var(--color-wine); }

.device-diag {
  font-size: var(--t-xs);
  line-height: 1.7;
  color: var(--color-ink-mute);
  background: var(--color-cream-soft);
  border-radius: var(--radius-sm);
  padding: var(--s3) var(--s4);
  margin-top: var(--s3);
}

/* ------------------------------------------------------- install banner -- */

.install-banner {
  display: none;
  align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  margin-top: var(--s5);
  background: var(--color-wine-tint);
  border: 1px solid var(--color-blush-deep);
  border-radius: var(--radius);
  font-size: var(--t-sm);
}
.install-banner.show { display: flex; }
.install-text { flex: 1; color: var(--color-ink-soft); }
.install-banner button {
  border: none; background: var(--color-wine); color: var(--color-cream);
  border-radius: 99px; padding: 9px var(--s4); font-size: var(--t-xs); font-weight: 600;
  cursor: pointer; min-height: 38px;
}
.install-banner .dismiss { background: transparent; color: var(--color-ink-mute); font-size: var(--t-lg); padding: 0 var(--s2); min-width: 38px; }

/* ------------------------------------------------------------- desktop -- */

@media (min-width: 900px) {
  :root { --nav-h: 0px; }
  body { background: var(--color-cream); }

  .bottom-nav { display: none; }

  #app { padding-bottom: 0; padding-left: 248px; }

  .sidebar {
    display: flex; flex-direction: column;
    position: fixed; left: 0; top: 0; bottom: 0; width: 248px; z-index: 50;
    padding: var(--s6) var(--s4);
    background: #fff;
    border-right: 1px solid var(--color-border-soft);
  }
  .sidebar-brand {
    font-family: var(--font-script);
    font-size: var(--t-3xl);
    color: var(--color-wine);
    text-align: center;
    line-height: 1;
    margin-bottom: var(--s2);
  }
  .sidebar-sub {
    text-align: center; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--color-gold-text); margin-bottom: var(--s6);
  }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar nav button {
    display: flex; align-items: center; gap: var(--s3);
    padding: var(--s3) var(--s4);
    border: none; background: transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans); font-size: var(--t-sm); font-weight: 500;
    color: var(--color-ink-soft);
    cursor: pointer; text-align: left;
    min-height: 46px;
    transition: background .16s, color .16s;
  }
  .sidebar nav button:hover { background: var(--color-cream-soft); color: var(--color-wine); }
  .sidebar nav button.active { background: var(--color-wine-tint); color: var(--color-wine); font-weight: 600; }
  .sidebar-foot { margin-top: auto; font-size: var(--t-xs); color: var(--color-ink-mute); text-align: center; }

  .top-bar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top-bar.scrolled { border-bottom-color: transparent; }
  #hamburger-btn { display: none; }
  /* The sidebar already carries the wordmark. */
  .top-bar-title.script { visibility: hidden; }

  .wrap { max-width: 760px; padding: 0 var(--s6); }
  .day-hero { margin-inline: calc(-1 * var(--s6)); }
}

@media (max-width: 899px) { .sidebar { display: none; } }

/* Wide phones / small tablets: the four quick tiles get cramped at 3 columns. */
@media (max-width: 380px) {
  .quick-row { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: var(--t-xl); }
  .day-title-lg { font-size: var(--t-2xl); }
}

/* Prayer points and any other in-card list. */
.q-list { margin: 0; padding-left: 0; list-style: none; }
.q-list li {
  position: relative;
  padding-left: var(--s5);
  margin-bottom: var(--s3);
  color: var(--color-ink-soft);
  line-height: 1.7;
}
.q-list li:last-child { margin-bottom: 0; }
.q-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .7em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* Visible to screen readers only — the unlock field's label. */
.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;
}

/* ---------------------------------------------------------- brand mark -- */

/* The monogram carries no wordmark, so the brand line sits beneath it. */
.unlock-logo {
  display: block;
  width: 132px; height: 132px;
  margin: 0 auto var(--s4);
  border-radius: 30px;
}
.unlock-brand {
  margin: 0 0 var(--s3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-gold-text);
}

.sidebar-mark { margin: 0 auto var(--s2); line-height: 0; }
.sidebar-mark img { width: 50px; height: 50px; display: block; margin: 0 auto; border-radius: 12px; }
