/* ============================================================
   SermonNotes — marketing site
   Cream app-frame floating on an ink grid. Fraunces + Instrument Sans.
   ============================================================ */

:root {
  --paper: #F6F1E7;
  --paper-warm: #EFE6D4;
  --paper-deep: #E7DCC5;
  --ink: #1B1611;
  --ink-soft: #57503F;
  --ink-faint: #6B6252;   /* AA on cream at small sizes */
  --gold: #C9862B;
  --gold-text: #A9711D;   /* gold for large type on cream (≥3:1) */
  --gold-bright: #E5A33D;
  --green: #33604A;
  --green-deep: #244635;
  --terra: #C05B2E;
  --terra-text: #A84A24;  /* terracotta for small labels on cream (≥4.5:1) */
  --line: rgba(27, 22, 17, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 2px rgba(27, 22, 17, 0.06), 0 12px 32px -12px rgba(27, 22, 17, 0.18);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(246, 241, 231, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 231, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
}

::selection { background: var(--gold); color: var(--ink); }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 900; line-height: 1.02; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
svg { display: block; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Stage & frame ============ */

.stage {
  min-height: 100dvh;
  padding: clamp(12px, 2.5vw, 36px);
  display: flex;
}

.frame {
  flex: 1;
  background: var(--paper);
  border-radius: clamp(20px, 3vw, 36px);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: clip;
  min-width: 0;
}

.frame-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-3);
  padding-top: 0;
  flex: 1;
}

/* ============ Top bar ============ */

.topbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark { width: 40px; height: 40px; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
}

.logo-dot { color: var(--gold); }

.logo-text small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.ticker {
  flex: 1;
  min-width: 0;
  background: var(--ink);
  color: var(--gold-bright);
  border-radius: 999px;
  overflow: hidden;
  padding: 9px 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 26s linear infinite;
}

.ticker-set {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ticker-set span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 28px;
}

.ticker-set i { font-style: normal; font-size: 10px; color: var(--paper); opacity: 0.7; }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* Let readers catch a line they were curious about */
.ticker:hover .ticker-track { animation-play-state: paused; }

.topbar-cta {
  flex-shrink: 0;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease-out), background 0.2s;
}

.topbar-cta:hover { background: var(--green-deep); transform: scale(1.04); }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--ink);
  border: none;
  border-radius: 999px;
}

.menu-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 0.25s var(--ease-out);
}

.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ============ Sidebar ============ */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: var(--space-3);
  align-self: start;
  height: calc(100dvh - clamp(12px, 2.5vw, 36px) * 2 - var(--space-3) * 2 - 88px);
  min-height: 480px;
}

.nav-card {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--ink);
  text-decoration: none;
  font-weight: 600;
  overflow: hidden;
  transition: flex-grow 0.45s var(--ease-out), transform 0.25s var(--ease-out);
}

.nav-card:hover { transform: translateX(3px); }
.nav-card.is-active { flex-grow: 1.6; }

.nav-gold { background: var(--gold); color: var(--ink); }
.nav-green { background: var(--green); color: var(--paper); }
.nav-terra { background: var(--terra); color: var(--paper); }
.nav-ink { background: var(--ink); color: var(--paper); }

.nav-num { font-size: 12px; font-weight: 700; opacity: 0.8; }

.nav-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease-out);
}

.nav-card:hover .nav-arrow { transform: translate(2px, -2px); }

.nav-label { font-size: 14.5px; line-height: 1.2; }

.sidebar-cta {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--ease-out);
}

.sidebar-cta:hover { background: var(--ink); color: var(--paper); transform: translateX(3px); }

.sidebar-foot { display: flex; justify-content: center; }

.made-for {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.made-for svg { width: 13px; height: 13px; fill: currentColor; }

/* ============ Content & panels ============ */

.content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.panel {
  border-radius: var(--r-lg);
  border: 1.5px solid var(--ink);
  overflow: hidden;
  position: relative;
}

.chip {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  width: fit-content;
}

.chip-light { border-color: rgba(246, 241, 231, 0.4); color: var(--paper); }

/* ============ Hero ============ */

.hero {
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: min(78vh, 760px);
}

.hero-copy {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}

.hero h1 {
  font-size: clamp(42px, 4.6vw, 68px);
}

.hero h1 em, .scripture h2 em, .download h2 em, .sunday h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-text);
}

/* Hand-drawn underline that draws itself in */
.u-draw { position: relative; display: inline-block; }

.u-stroke {
  position: absolute;
  left: -0.02em;
  right: -0.02em;
  bottom: -0.12em;
  width: 102%;
  height: 0.22em;
  color: var(--gold);
  overflow: visible;
}

.u-stroke path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw-stroke 1s var(--ease-out) 1.15s forwards;
}

/* Both words are underlined, each by its own stroke, because one <em> spanning
   the pair puts a single absolutely-positioned stroke under the last line only.
   The two paths differ slightly and the second lands a beat later, so it reads
   as two passes of a pen rather than one shape stamped twice. */
.u-stroke-2 path { animation-delay: 1.45s; }

/* No JS, or reduced motion: the strokes must simply be there. The animation
   above only ever runs forwards, so this is the resting state. */
@media (prefers-reduced-motion: reduce) {
  .u-stroke path { stroke-dashoffset: 0; animation: none; }
}

html:not(.js) .u-stroke path { stroke-dashoffset: 0; animation: none; }

@keyframes draw-stroke {
  to { stroke-dashoffset: 0; }
}

.lead {
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  color: var(--ink-soft);
  max-width: 46ch;
}

/* Two columns only while two columns actually fit. A fixed 2-up grid made the
   longest label wrap — to two lines at a middling width and three at a narrow
   one — which left one ragged row among five tidy ones and read as a bug.
   `auto-fit` drops to a single column instead of squeezing. */
.hero-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px 20px;
  max-width: 480px;
}

.hero-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  /* Should a label ever wrap anyway, the icon stays on the first line rather
     than floating to the vertical middle of a two-line item. */
  line-height: 1.3;
}

.hero-checks svg { margin-top: 0.1em; }

.hero-checks svg { width: 19px; height: 19px; color: var(--gold); flex-shrink: 0; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 28px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease-out), background 0.2s;
}

.btn-primary:hover { background: var(--green-deep); transform: scale(1.03); }
.btn-primary svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.btn-primary:hover svg { transform: translate(2px, -2px); }

/* Press feedback everywhere something is tappable */
.btn-primary:active, .topbar-cta:active, .sidebar-cta:active,
.appstore-badge:active, .btn-ghost:active, .nav-card:active,
.mobile-cta a:active { transform: scale(0.97); }

.btn-note { font-size: 13px; font-weight: 500; color: var(--ink-faint); }

/* --- Hero visual --- */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
  overflow: hidden;
}

.grid-panel {
  position: absolute;
  inset: 0;
  background: var(--paper-warm);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  border-left: 1.5px solid var(--ink);
}

.phone {
  position: relative;
  width: min(300px, 74%);
  aspect-ratio: 300 / 610;
  background: var(--ink);
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(27, 22, 17, 0.45);
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: var(--ink);
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  background: #FDFAF3;
  border-radius: 35px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- The in-phone mock of the note editor ---
   Deliberately a replica of the real screen rather than a generic "notes app"
   drawing: same section labels, same scripture card with its gold rule, same
   metadata grid, same order. It used to have a back-arrow / title / overflow
   nav bar, which the editor does not have at all — the only chrome on that
   screen is the privacy lock, top right. Reference capture:
   Config/Screenshots/69-Editor.png. */

.app-note {
  padding: 40px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  position: relative;
  background: var(--paper);
}

.app-topbar { display: flex; justify-content: flex-end; }

.app-lock {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFDF7;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(27, 22, 17, 0.12);
}

.app-lock svg { width: 13px; height: 13px; color: var(--ink); }

.app-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.08;
  color: var(--ink);
  margin: 2px 0 0;
}

/* Two columns, exactly as the editor lays its metadata out. */
.app-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  margin-top: 2px;
}

.app-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-meta-item svg { width: 10px; height: 10px; flex-shrink: 0; color: var(--ink-faint); }

/* The date sits in a filled pill in the app, because it is the one editable
   field that opens a picker. */
.app-meta-date {
  background: rgba(27, 22, 17, 0.06);
  border-radius: 6px;
  padding: 2px 5px;
  margin: -2px 0;
}

.app-rule { height: 1px; background: var(--line); margin: 5px 0 2px; }

/* SectionLabel: uppercase, tracked, quiet. */
.app-label {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.app-ref-row { display: flex; align-items: center; gap: 6px; }

.app-ref-icon { width: 12px; height: 12px; color: var(--ink-faint); flex-shrink: 0; }

.app-ref { font-size: 12px; font-weight: 500; color: var(--ink); }

.app-chevron { width: 9px; height: 9px; color: var(--ink-faint); margin-left: auto; }

/* Button(role: .destructive) — system red, and the last thing on the row. */
.app-remove { width: 11px; height: 11px; color: #E0402F; flex-shrink: 0; }

/* The scripture card: tinted panel, gold rule down the left. */
.app-scripture {
  position: relative;
  background: rgba(201, 134, 43, 0.1);
  border-radius: 7px;
  /* 12pt all round with 4pt extra on the leading edge, at ~0.7 scale. */
  padding: 8px 8px 9px 11px;
  overflow: hidden;
}

.app-scripture::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gold);
}

.app-scripture-tag {
  display: block;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.06em;   /* kerning 0.6 on caption2 */
  color: var(--gold-text);
  margin-bottom: 4px;
}

/* Scripture is set in the display serif in the app, not the body sans. */
.app-scripture-text {
  font-family: var(--font-display);
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}

.app-add {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gold-text);
}

.app-add svg { width: 12px; height: 12px; color: var(--gold); flex-shrink: 0; }

.app-notes-head { display: flex; align-items: center; justify-content: space-between; }

.app-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--gold-text);
  background: rgba(201, 134, 43, 0.16);
  border-radius: 999px;
  padding: 3px 7px;
}

.app-pill svg { width: 9px; height: 9px; }

.app-block { font-size: 10.5px; line-height: 1.45; color: var(--ink-soft); }

.app-block-header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-top: 3px;
}

.app-block-quote {
  position: relative;
  padding: 2px 0 2px 8px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  margin-top: 2px;
}

/* Rounded ends, and the accent at 60% — not the solid gold it had. */
.app-block-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 1.4px;
  background: rgba(201, 134, 43, 0.6);
}

.app-block-quote span { color: var(--ink-faint); font-style: normal; font-size: 9.5px; }

.app-block-bullet { display: flex; align-items: baseline; gap: 7px; }

/* The editor's bullet is the character "•" in the note's accent colour, set in
   the same font as the text — checked against BlockEditorView rather than
   guessed from a screenshot, where it reads as a small square. */
.app-block-bullet i {
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  color: var(--gold-text);
  flex-shrink: 0;
}

/* Keyboard accessory bar. A **floating capsule**, not a bar ruled off from the
   page — ten controls spread evenly: the five block kinds, scripture, add
   block, undo, delete and dismiss keyboard. The focused kind gets a
   gold-tinted tile and delete is red. Taken from a simulator capture. */
.app-toolbar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1px;
  padding: 4px 5px;
  margin-inline: -4px;
  background: #FEFCF6;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(27, 22, 17, 0.1);
}

.tb {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--ink);
  flex-shrink: 0;
}

.tb svg { width: 12px; height: 12px; }

.tb-active { background: rgba(201, 134, 43, 0.28); color: var(--gold-text); }

.tb-danger { color: #C0392B; }

.verse-float {
  position: absolute;
  z-index: 3;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 200px;
}

.vf-ref { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--terra-text); }
.vf-text { font-family: var(--font-display); font-style: italic; font-size: 13.5px; line-height: 1.35; }

.verse-float-1 { top: 16%; right: 6%; transform: rotate(3deg); }
.verse-float-2 { bottom: 14%; left: 5%; transform: rotate(-2.5deg); }

/* ============ Kinetic band ============ */

.band {
  background: var(--gold);
  padding: clamp(48px, 7vw, 110px) clamp(18px, 4vw, 56px);
  text-align: center;
}

.band-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 22, 17, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 22, 17, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.band-words {
  position: relative;
  display: flex;
  flex-direction: column;
  font-size: clamp(40px, 8.5vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.band-word { display: block; align-self: flex-start; }
.band-word-2 { align-self: center; font-style: italic; font-weight: 500; }
.band-word-3 { align-self: flex-end; }
.band-mark { color: var(--paper); }

.band-sub {
  position: relative;
  margin-top: var(--space-4);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  color: rgba(27, 22, 17, 0.75);
}

/* ============ Features bento ============ */

.features { display: flex; flex-direction: column; gap: var(--space-3); }

.features-head {
  background: var(--terra);
  color: var(--paper);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--ink);
  padding: clamp(20px, 2.5vw, 32px) clamp(24px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.features-head h2 { font-size: clamp(26px, 3vw, 42px); }

.features-head-arrow { width: clamp(26px, 2.6vw, 38px); height: auto; animation: bob 2.2s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(3px); }
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.bento-card {
  border-radius: var(--r-lg);
  border: 1.5px solid var(--ink);
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }

.bc-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 700;
}

.bento-card h3 { font-size: clamp(21px, 1.9vw, 26px); }

.bento-card ul { display: flex; flex-direction: column; }

.bento-card li {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0 10px 0;
  border-bottom: 1px solid rgba(27, 22, 17, 0.22);
  transition: padding-left 0.25s var(--ease-out);
}

.bento-card li:hover { padding-left: 8px; }

.bento-card li:last-child { border-bottom: none; }

.bc-gold { background: var(--gold); }
.bc-green { background: var(--green); color: var(--paper); }
.bc-green .bc-num { background: var(--paper); color: var(--ink); }
.bc-green li { border-bottom-color: rgba(246, 241, 231, 0.25); }
.bc-paper { background: var(--paper); }

/* screenshot-ish cards */

.bc-shot { background: var(--paper-warm); grid-column: span 2; flex-direction: row; align-items: stretch; gap: var(--space-3); }

.shot-ui {
  flex: 1;
  background: #FDFAF3;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: var(--shadow-card);
}

.shot-row { border-radius: 6px; }
.shot-header { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.shot-body { height: 10px; background: rgba(27, 22, 17, 0.13); }
.shot-body.short { width: 62%; }
/* Quote block: 3px accent rule at 60% opacity, rounded, then 12pt of space —
   BlockEditorView draws exactly this. */
.shot-quote {
  position: relative;
  padding-left: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
}

.shot-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: rgba(201, 134, 43, 0.6);
}

/* Scripture block: a tinted card with a **full-height 6px** accent bar down
   the left, clipped by the card's own corner radius. Not the inset, rounded
   rule used elsewhere — the app draws a plain Rectangle and relies on the
   clip, which is why the bar meets the corners squarely. */
.shot-scripture {
  position: relative;
  background: rgba(201, 134, 43, 0.1);
  border-radius: 12px;
  padding: 10px 12px 11px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shot-scripture::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--gold);
}

.shot-scripture-ref {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-text);
}

.shot-scripture-ref em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  opacity: 0.75;
  margin-left: 4px;
}

.shot-scripture-text {
  font-family: var(--font-display);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
}

/* The app's bullet is the character "•", set in the same font as the text it
   marks and in the note's accent colour — not a drawn dot or square. Top
   alignment, because that is how the editor stacks the marker against a line
   that may wrap. */
.shot-bullet { display: flex; align-items: flex-start; gap: 8px; }
.shot-bullet::after { content: ""; flex: 1; height: 10px; border-radius: 6px; background: rgba(27, 22, 17, 0.13); margin-top: 3px; }
.shot-bullet i {
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  color: var(--gold-text);
  flex-shrink: 0;
}

.bc-shot figcaption {
  align-self: flex-end;
  font-size: 13.5px;
  font-weight: 600;
  max-width: 170px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.bc-dark { background: var(--ink); color: var(--paper); }

/* The card used to be a bare search box whose only explanation sat *underneath*
   the results — so it read as a widget with no label until after you had
   already used it. Heading and prompt now come first, which also brings it
   into line with its sibling cards. */
.bc-dark h3 { color: var(--paper); }

.bc-lede {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(246, 241, 231, 0.72);
  max-width: 42ch;
}

.bc-dark .search-ui { margin-top: auto; }

.search-ui { display: flex; flex-direction: column; gap: 9px; flex: 1; }

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(246, 241, 231, 0.1);
  border: 1px solid rgba(246, 241, 231, 0.28);
  border-radius: 10px;
  padding: 10px 13px;
  font-weight: 600;
  font-size: 14px;
  cursor: text;
  transition: border-color 0.2s;
}

.search-field:focus-within { border-color: var(--gold-bright); }

.search-field input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font: inherit;
  color: var(--paper);
  caret-color: var(--gold-bright);
}

.search-field input::placeholder { color: rgba(246, 241, 231, 0.45); }

.search-field input::-webkit-search-cancel-button { display: none; }

.search-field svg { width: 14px; height: 14px; color: var(--gold-bright); flex-shrink: 0; }

.search-results { display: flex; flex-direction: column; gap: 9px; min-height: 172px; }

.search-empty {
  font-size: 12.5px;
  color: rgba(246, 241, 231, 0.6);
  padding: 9px 13px;
}

.search-hit-meta {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.45);
  margin-top: 2px;
}

.caret {
  width: 2px;
  height: 1.1em;
  background: var(--gold-bright);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.search-hit {
  background: rgba(246, 241, 231, 0.06);
  border-radius: 10px;
  padding: 9px 13px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  animation: hit-in 0.3s var(--ease-out) backwards;
}

.search-hit:nth-child(2) { animation-delay: 0.06s; }
.search-hit:nth-child(3) { animation-delay: 0.12s; }

@keyframes hit-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.search-hit strong { font-size: 12.5px; }
.search-hit span { font-size: 11.5px; color: rgba(246, 241, 231, 0.6); }
.search-hit mark { background: var(--gold); color: var(--ink); border-radius: 3px; padding: 0 3px; }

.bc-caption { color: rgba(246, 241, 231, 0.75); margin-top: var(--space-2); font-size: 13.5px; font-weight: 600; }
.bc-caption strong { color: var(--gold-bright); }

/* ============ A Sunday with SermonNotes ============ */

.sunday {
  background: var(--paper);
  padding: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
}

.sunday-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.sunday-head h2 { font-size: clamp(34px, 3.6vw, 54px); }

.sunday-head p {
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 16.5px);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

/* dashed thread connecting the three moments; draws in when the section arrives */
.steps::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 4px;
  right: 18%;
  border-top: 2px dashed rgba(27, 22, 17, 0.28);
  transform-origin: left center;
  transition: transform 1.4s var(--ease-out) 0.25s;
}

.js .steps:not(.is-drawn)::before { transform: scaleX(0); }

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px 5px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.step-dot { width: 9px; height: 9px; border-radius: 50%; }
.sd-gold { background: var(--gold); }
.sd-terra { background: var(--terra); }
.sd-green { background: var(--green); }

.step h3 { font-size: clamp(20px, 1.8vw, 25px); margin-top: 6px; }

.step p { font-size: 14.5px; color: var(--ink-soft); max-width: 34ch; }

/* ============ Scripture demo ============ */

.scripture { background: var(--green-deep); color: var(--paper); }

.scripture-inner {
  display: grid;
  place-items: center;
  padding: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 56px);
  min-height: 100%;
}

/* One column since the typing demo was removed. Centred, with the text
   centred too — left-aligned copy floating in the middle of a wide panel
   reads as a column that lost its partner. */
.scripture-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  max-width: 34ch;
}

/* The chip is a single label; wrapping it across two lines inside the narrower
   measure reads as a mistake. */
.scripture-copy .chip { white-space: nowrap; }

/* The picker's three steps. The app has no "type a reference" field, so the
   panel describes what it actually does: book, chapter, verses. */
.picker-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.picker-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(246, 241, 231, 0.9);
}

.picker-steps span {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

.scripture h2 { font-size: clamp(34px, 3.6vw, 54px); }
.scripture h2 em { color: var(--gold-bright); }

.scripture p { color: rgba(246, 241, 231, 0.78); max-width: 42ch; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(246, 241, 231, 0.45);
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover { background: rgba(246, 241, 231, 0.12); border-color: var(--paper); }
.btn-ghost svg { width: 14px; height: 14px; }

.demo-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.2vw, 30px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.demo-field { display: flex; flex-direction: column; gap: 7px; }

.demo-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.demo-input {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  font-size: 17px;
  font-weight: 600;
  min-height: 51px;
}

.demo-input .caret { background: var(--gold); }

.demo-result {
  background: rgba(201, 134, 43, 0.1);
  border: 1px solid rgba(201, 134, 43, 0.45);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.demo-result-head { display: flex; align-items: center; gap: 10px; }

.demo-canonical { font-weight: 700; font-size: 14.5px; color: #8a5a17; }

.demo-verse {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  font-weight: 400;
}

.demo-verse sup { font-size: 0.6em; color: var(--terra); font-weight: 700; margin-right: 2px; }

/* Satisfied little pop from the ESV tag once the verse lands */
.app-scripture-tag.pop { animation: tag-pop 0.45s var(--ease-out); }

@keyframes tag-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3) rotate(-3deg); }
  100% { transform: scale(1); }
}

/* ============ Interlude ============ */

.interlude {
  background: var(--paper-warm);
  padding: clamp(48px, 6vw, 96px) clamp(28px, 4vw, 56px);
  text-align: center;
}

.interlude blockquote { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); align-items: center; }

.interlude p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.25;
  max-width: 22ch;
  letter-spacing: -0.01em;
}

.interlude cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-text);
}

/* Highlighter sweep — like marking a verse in your Bible */
.hl {
  background-image: linear-gradient(to top, rgba(201, 134, 43, 0.38) 0%, rgba(201, 134, 43, 0.38) 78%, transparent 78%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 0.08em;
  transition: background-size 1.1s var(--ease-out) 0.35s;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hl.is-inked { background-size: 100% 100%; }

/* ============ Download ============ */

.download {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: clamp(56px, 8vw, 120px) clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.download-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 241, 231, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 231, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.download h2 {
  position: relative;
  font-size: clamp(48px, 7vw, 104px);
}

.download p { position: relative; color: rgba(246, 241, 231, 0.72); font-size: clamp(15px, 1.3vw, 18px); }

.download-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* Pre-launch: the badge is a <span>, not a link, because the app isn't on the
   store yet and a badge that goes to apple.com is worse than one that waits.
   Swap back to an <a href="[the real product URL]"> on approval and delete
   this rule. */
.appstore-badge.is-pending {
  cursor: default;
  opacity: 0.72;
}
.appstore-badge.is-pending:active { transform: none; }

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border-radius: 16px;
  padding: 14px 26px;
  transition: transform 0.2s var(--ease-out), background 0.2s;
}

.appstore-badge:hover { transform: scale(1.04); background: var(--gold-bright); }

.appstore-badge svg { width: 30px; height: 30px; fill: currentColor; }

.appstore-badge:hover svg { animation: apple-tip 0.5s var(--ease-out); }

@keyframes apple-tip {
  0% { transform: rotate(0); }
  35% { transform: rotate(-8deg); }
  70% { transform: rotate(5deg); }
  100% { transform: rotate(0); }
}

.appstore-badge span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
}

.appstore-badge small { font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: 0.02em; }

.download .btn-note { color: rgba(246, 241, 231, 0.65); }

.trust-chips {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-3);
}

.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(246, 241, 231, 0.8);
  border: 1px solid rgba(246, 241, 231, 0.28);
  border-radius: 999px;
  padding: 8px 16px;
}

.trust-chips svg { width: 15px; height: 15px; color: var(--gold-bright); }

/* ============ Footer ============ */

.footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-2) var(--space-1);
}

.footer-logo .logo-text { font-size: 18px; }

.footer-links { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.footer-links a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--ink); }

.footer-fine {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--ink-faint);
  max-width: 72ch;
}

/* ============ Mobile sticky CTA ============ */

.mobile-cta {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: none;
  transform: translateY(130%);
  transition: transform 0.45s var(--ease-out);
  pointer-events: none;
}

.mobile-cta.is-visible { transform: translateY(0); pointer-events: auto; }

.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(246, 241, 231, 0.25);
  border-radius: 999px;
  padding: 16px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.55);
}

.mobile-cta svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 1023px) {
  .mobile-cta { display: block; }
}

/* ============ Mobile nav overlay ============ */

.mobile-nav[hidden] { display: none; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(27, 22, 17, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(24px, 8vw, 48px);
}

.mobile-nav .nav-card { flex: 0 0 auto; padding: 20px; font-size: 18px; gap: 8px; }
.mobile-nav .nav-label { font-size: 20px; }

/* ============ Reveal defaults (JS enhances) ============ */

.js .reveal { opacity: 0; }
.js .band-word { opacity: 0; }

/* ============ Responsive ============ */

@media (max-width: 767px) {
  /* Timeline turns vertical: thread runs down the left edge */
  .steps { grid-template-columns: 1fr; gap: var(--space-4); }
  .steps::before {
    top: 8px;
    bottom: 8px;
    left: 13px;
    right: auto;
    border-top: none;
    border-left: 2px dashed rgba(27, 22, 17, 0.28);
    transform-origin: center top;
  }
  .js .steps:not(.is-drawn)::before { transform: scaleY(0); }
  .steps.is-drawn::before { transform: scaleY(1); }
  .step { padding-left: 2px; }
}

@media (max-width: 1023px) {
  .frame-body { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .menu-btn { display: flex; }
  .topbar-cta { display: none; }
  .ticker { display: none; }
  .topbar { justify-content: space-between; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 540px; }
  .grid-panel { border-left: none; border-top: 1.5px solid var(--ink); }

  .bento { grid-template-columns: 1fr; }
  .bc-shot { grid-column: auto; flex-direction: column; }
  .bc-shot figcaption, .bc-dark figcaption { align-self: flex-start; max-width: none; }

}

@media (max-width: 599px) {
  .hero-checks { grid-template-columns: 1fr; }
  .logo-text small { display: none; }
  .hero-visual { min-height: 640px; padding: 56px 16px; }
  .phone { width: 250px; }
  .verse-float { max-width: 150px; }
  .vf-text { font-size: 12px; }
  .verse-float-1 { top: 3%; right: 2%; }
  .verse-float-2 { bottom: 3%; left: 2%; }
  .footer { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}

/* Mobile ticker strip below topbar */
@media (max-width: 1023px) {
  .frame::after {
    content: none;
  }
}

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .features-head-arrow { animation: none; }
  .caret { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
