/* ============================================================
   BibleClick — site styles
   Palette and atmosphere gradients are taken directly from the
   app source (BibleClickTheme.swift / PhoneThemeSurface.swift).
   ============================================================ */

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

:root {
  /* Ink and paper — BibleClickTheme.swift */
  --ink:        #2b2620;
  --ink-soft:   #4a4438;
  --muted:      #7a7361;
  --paper:      #fffcf5;
  --cream:      #fffae8;
  --sage:       #78876f;
  --sage-deep:  #596652;
  --gold:       #bf9954;
  --line:       rgba(191, 173, 135, .34);
  --line-soft:  rgba(191, 173, 135, .18);

  /* Current atmosphere — swapped by app.js. Defaults to Pearl Sky. */
  --atm-1: #fcffff;
  --atm-2: #e6f7ff;
  --atm-3: #c2e6f2;
  --atm-title: #426b7a;

  --shell: min(1140px, 100%);
  --gutter: clamp(20px, 5vw, 44px);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;

  --ease: cubic-bezier(.22, .68, .36, 1);
  --settle: cubic-bezier(.16, .84, .32, 1);
}

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: Figtree, ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: rgba(191, 153, 84, .26); }

/* ---------- Atmosphere: two crossfading gradient layers ---------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--atm-1);
}

.atm-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1100ms var(--ease);
  background:
    radial-gradient(118% 100% at 18% 8%,
      var(--atm-1) 0%, var(--atm-2) 38%, var(--atm-3) 88%);
}

.atm-layer.is-active { opacity: 1; }

/* A faint paper tooth so the large gradients never band */
.atm-grain {
  position: absolute;
  inset: 0;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

/* ---------- Shell ---------- */

.wrap {
  width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Support and privacy read in a narrower, book-like column */
.wrap--doc { --shell: min(760px, 100%); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 99;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 16px; }

/* Available to assistive tech, out of the visual composition */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--atm-title);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 400ms var(--ease), border-color 400ms var(--ease),
              backdrop-filter 400ms var(--ease);
}

.nav.is-stuck {
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  background: linear-gradient(to bottom, rgba(255, 252, 245, .82), rgba(255, 252, 245, .58));
  border-bottom-color: var(--line-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--ink);
}

.mark__glyph {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
  background:
    radial-gradient(circle at 34% 28%, #fff 0%, rgba(255, 255, 255, .72) 16%, rgba(255, 255, 255, .1) 44%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(circle at 62% 72%, var(--atm-3) 0%, var(--atm-2) 60%, var(--atm-1) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .6),
    0 2px 6px rgba(90, 78, 56, .16);
  transition: background 900ms var(--ease);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 20px);
  font-size: .92rem;
  font-weight: 500;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 7px 11px;
  border-radius: 999px;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}

.nav__links a:hover { background: rgba(255, 255, 255, .62); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .74); }

/* Needs `.nav__links a` specificity (0,1,1) to beat the muted link colour above */
.nav__links a.nav__cta {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  padding: 8px 15px;
}

.nav__links a.nav__cta:hover { background: #17130e; color: var(--paper); }

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

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: calc(100svh - 62px);
  padding-block: clamp(34px, 6vh, 66px) clamp(38px, 6vh, 64px);
  text-align: center;
  overflow: hidden;
}

.hero__drift {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.drift {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  opacity: .82;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .5) 15%, rgba(255, 255, 255, .06) 42%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .04) 58%, rgba(255, 255, 255, .5) 90%, rgba(255, 255, 255, .05) 100%);
  box-shadow: 0 8px 22px rgba(94, 82, 58, .1);
  animation: drift var(--t, 22s) var(--d, 0s) ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(14px, -26px, 0) scale(1.06); }
  66%      { transform: translate3d(-12px, -12px, 0) scale(.95); }
}

.hero__stage {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(20px, 3.4vh, 34px);
}

/* ---------- The bubble (signature element) ---------- */

.bubble-btn {
  position: relative;
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  width: clamp(148px, 25vw, 214px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.bubble {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: float 9s ease-in-out infinite;
  transition: transform 420ms var(--settle);
  background:
    radial-gradient(circle at 33% 27%,
      rgba(255, 255, 255, .98) 0%,
      rgba(255, 255, 255, .58) 10%,
      rgba(255, 255, 255, .1) 28%,
      rgba(255, 255, 255, 0) 50%),
    radial-gradient(circle at 72% 80%,
      rgba(255, 255, 255, .5) 0%,
      rgba(255, 255, 255, .08) 30%,
      rgba(255, 255, 255, 0) 52%),
    conic-gradient(from 200deg at 50% 50%,
      rgba(255, 214, 170, .3),
      rgba(198, 232, 246, .34),
      rgba(224, 206, 246, .28),
      rgba(206, 240, 214, .3),
      rgba(255, 214, 170, .3)),
    radial-gradient(circle at 50% 50%,
      rgba(255, 255, 255, 0) 54%,
      rgba(255, 255, 255, .62) 88%,
      rgba(255, 255, 255, .1) 100%);
  box-shadow:
    inset 0 0 44px rgba(255, 255, 255, .42),
    inset 0 -14px 34px rgba(255, 255, 255, .34),
    0 26px 60px rgba(92, 80, 58, .14),
    0 3px 12px rgba(92, 80, 58, .07);
}

.bubble-btn:hover .bubble { transform: scale(1.035); }
.bubble-btn:active .bubble { transform: scale(.965); }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -13px, 0); }
}

/* Tap: the bubble settles, then releases a few small bubbles */
.bubble-btn.is-settling .bubble { animation: settle 720ms var(--settle); }

@keyframes settle {
  0%   { transform: scale(1) translateY(0); }
  22%  { transform: scale(.9, 1.07) translateY(4px); }
  48%  { transform: scale(1.07, .93) translateY(-8px); }
  74%  { transform: scale(.98, 1.02) translateY(2px); }
  100% { transform: scale(1) translateY(0); }
}

.bubble__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .8);
  opacity: 0;
  pointer-events: none;
}

.bubble-btn.is-settling .bubble__ring { animation: ripple 880ms var(--ease); }

@keyframes ripple {
  0%   { opacity: .85; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.55); }
}

.spark {
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 30%, #fff 0%, rgba(255, 255, 255, .5) 22%, rgba(255, 255, 255, .05) 55%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .04) 55%, rgba(255, 255, 255, .6) 92%);
}

.bubble-btn.is-settling .spark { animation: rise 1150ms var(--ease) forwards; }

.spark:nth-of-type(1) { --dx: -46px; --sc: 1.25; animation-delay: 40ms  !important; }
.spark:nth-of-type(2) { --dx:  30px; --sc: .85;  animation-delay: 130ms !important; }
.spark:nth-of-type(3) { --dx: -14px; --sc: 1.6;  animation-delay: 210ms !important; }
.spark:nth-of-type(4) { --dx:  58px; --sc: 1.05; animation-delay: 300ms !important; }
.spark:nth-of-type(5) { --dx:   6px; --sc: .7;   animation-delay: 380ms !important; }

@keyframes rise {
  0%   { opacity: 0;   transform: translate(-50%, 0) scale(.4); }
  18%  { opacity: .95; }
  100% { opacity: 0;   transform: translate(calc(-50% + var(--dx)), -132px) scale(var(--sc)); }
}

/* ---------- Verse ---------- */

.eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--atm-title);
  transition: color 900ms var(--ease);
}

.verse { max-width: min(100%, 46rem); }

.verse__eyebrow {
  margin: 0 0 clamp(12px, 1.6vh, 20px);
  display: block;
}

.verse__text {
  margin: 0;
  font-family: Cardo, "Iowan Old Style", Palatino, Georgia, serif;
  font-size: clamp(1.72rem, 4.6vw, 3.15rem);
  line-height: 1.24;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}

.verse__text b { font-weight: 700; }

.verse__ref {
  display: block;
  margin-top: clamp(14px, 2vh, 22px);
  font-family: Cardo, Georgia, serif;
  font-style: italic;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  color: var(--muted);
  letter-spacing: .01em;
}

.verse.is-leaving .verse__text,
.verse.is-leaving .verse__ref { opacity: 0; filter: blur(3px); transform: translateY(-5px); }

.verse__text, .verse__ref {
  transition: opacity 300ms var(--ease), filter 300ms var(--ease), transform 300ms var(--ease);
}

.hint {
  font-size: .84rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 500ms var(--ease);
}

.hint__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--atm-title);
  opacity: .55;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50%      { transform: scale(1.5); opacity: .9; }
}

.hint.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- Atmosphere picker ---------- */

.picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  max-width: 900px;
}

.picker__label {
  width: 100%;
  margin: 0 0 4px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .5);
  color: var(--ink-soft);
  font: inherit;
  font-size: .86rem;
  font-weight: 500;
  transition: background 240ms var(--ease), border-color 240ms var(--ease),
              color 240ms var(--ease), transform 240ms var(--ease);
}

.pill:hover { background: rgba(255, 255, 255, .84); transform: translateY(-1px); }

.pill[aria-pressed="true"] {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(92, 80, 58, .12);
}

.pill__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
  background: radial-gradient(circle at 32% 28%, var(--d1) 0%, var(--d2) 55%, var(--d3) 100%);
}

/* ---------- Hero facts ---------- */

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .82rem;
  color: var(--muted);
}

.facts li { display: flex; align-items: center; gap: 22px; }
.facts li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  margin-right: -14px;
}

/* ---------- Call to action ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(43, 38, 32, .22);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease);
}

.cta:hover {
  background: #17130e;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(43, 38, 32, .28);
}

.cta svg { flex: none; }

.cta-group {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.cta-note {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.sheet {
  position: relative;
  background: rgba(255, 252, 245, .94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line-soft);
}

.section { padding-block: clamp(56px, 9vw, 108px); }
.section--tight { padding-top: 0; }

.section__head { max-width: 46ch; margin-bottom: clamp(30px, 5vw, 52px); }
.section__head--center { margin-inline: auto; text-align: center; }

.section__title {
  font-family: Cardo, "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.95rem, 3.9vw, 3rem);
  line-height: 1.16;
  letter-spacing: -.014em;
  margin: 14px 0 0;
  text-wrap: balance;
}

.section__lede {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 54ch;
}

.section__head--center .section__lede { margin-inline: auto; }

/* ---------- Device showcase: alternating rows ---------- */

.showcase {
  display: grid;
  gap: clamp(56px, 8vw, 104px);
}

.showcase__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.showcase__row--flip { grid-template-columns: minmax(0, 1fr) auto; }

.showcase__media {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 26px);
}

/* A soft pool of light so each device sits on the page rather than floating */
.showcase__media::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--atm-2), transparent 72%);
  opacity: .5;
  filter: blur(26px);
  transition: background 900ms var(--ease);
}

.showcase__copy { max-width: 46ch; }

.showcase__kicker {
  margin: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.showcase__title {
  font-family: Cardo, "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.55rem, 2.9vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -.012em;
  margin: 13px 0 0;
  text-wrap: balance;
}

.showcase__body {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  font-size: .78rem;
  font-weight: 500;
  color: var(--sage-deep);
  background: rgba(120, 135, 111, .1);
  border: 1px solid rgba(120, 135, 111, .16);
  padding: 4px 11px;
  border-radius: 999px;
}

/* ---------- Apple Watch frame ---------- */

.watch {
  position: relative;
  width: clamp(198px, 25vw, 286px);
  filter: drop-shadow(0 26px 42px rgba(60, 52, 38, .24));
}

.watch__body {
  position: relative;
  border-radius: 26%/22%;
  background: linear-gradient(150deg, #4a4a4e 0%, #1e1e21 34%, #131315 64%, #35353a 100%);
  padding: 9px;
}

.watch__screen {
  border-radius: 21%/18%;
  overflow: hidden;
  background: #000;
  aspect-ratio: 416 / 496;
}

.watch__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 420ms var(--ease);
}

.watch__screen img.is-swapping { opacity: 0; }

.watch__crown,
.watch__side {
  position: absolute;
  right: -5px;
  border-radius: 3px;
  background: linear-gradient(to right, #2a2a2e, #5c5c62 55%, #303035);
}

.watch__crown { top: 28%; width: 6px; height: 38px; }
.watch__side  { top: 49%; width: 5px; height: 26px; opacity: .75; }

.watch__band {
  height: 22px;
  margin-inline: 34px;
  background: linear-gradient(to bottom, #2c2c30, #1a1a1d);
}
.watch__band--top    { border-radius: 12px 12px 3px 3px; margin-bottom: -8px; }
.watch__band--bottom { border-radius: 3px 3px 12px 12px; margin-top: -8px; }

/* ---------- iPhone frame (holds a real app screenshot) ---------- */

.phone {
  position: relative;
  width: clamp(206px, 27vw, 326px);
  border-radius: 42px;
  padding: 7px;
  background: linear-gradient(152deg, #e2dcd0 0%, #938b7c 26%, #46423a 58%, #b8af9e 82%, #6d675c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .3),
    0 28px 46px rgba(60, 52, 38, .26);
}

.phone__screen {
  position: relative;
  border-radius: 35px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 402 / 874;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Atmosphere gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

.atm-card {
  display: block;
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  background: var(--paper);
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}

.atm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(92, 80, 58, .14);
}

.atm-card[aria-pressed="true"] {
  border-color: var(--atm-title);
  box-shadow: 0 0 0 1px var(--atm-title), 0 14px 30px rgba(92, 80, 58, .13);
}

.atm-card__scene {
  display: block;
  position: relative;
  width: 100%;
  height: clamp(104px, 13vw, 150px);
  background: radial-gradient(120% 110% at 22% 14%, var(--c1) 0%, var(--c2) 48%, var(--c3) 100%);
  overflow: hidden;
}

.atm-card__scene i {
  position: absolute;
  width: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .42) 16%, rgba(255, 255, 255, .04) 44%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .03) 58%, rgba(255, 255, 255, .5) 92%);
}

.atm-card__scene i:nth-child(1) { height: 62%; left: 9%;  top: 30%; }
.atm-card__scene i:nth-child(2) { height: 36%; left: 48%; top: 10%; }
.atm-card__scene i:nth-child(3) { height: 26%; left: 74%; top: 48%; }
.atm-card__scene i:nth-child(4) { height: 15%; left: 32%; top: 8%; }

.atm-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 2px 9px rgba(92, 80, 58, .16);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.atm-card[aria-pressed="true"] .atm-card__badge { display: inline-flex; }

.atm-card__text { display: block; padding: 15px 16px 17px; }

.atm-card__mood {
  display: block;
  font-family: Cardo, Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--ink);
}

.atm-card__name {
  display: block;
  margin-top: 6px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.atm-card__elems {
  display: block;
  margin-top: 9px;
  font-size: .78rem;
  color: var(--sage-deep);
}

/* ---------- Quiet statement (privacy) ---------- */

.gallery__note {
  margin: 26px 0 0;
  text-align: center;
  font-size: .94rem;
  color: var(--muted);
}

.gallery__note strong { color: var(--ink); font-weight: 600; }

.gallery__note a {
  color: var(--sage-deep);
  font-weight: 600;
  text-underline-offset: 3px;
}

.statement { text-align: center; }

.statement__big {
  font-family: Cardo, Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 3.7rem);
  line-height: 1.14;
  letter-spacing: -.018em;
  margin: 0 auto;
  max-width: 16ch;
  text-wrap: balance;
}

.statement__sub {
  margin: 20px auto 0;
  max-width: 52ch;
  color: var(--ink-soft);
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  margin-top: clamp(38px, 6vw, 60px);
  text-align: left;
}

.trio__item {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.trio__term {
  font-family: Cardo, Georgia, serif;
  font-size: 1.16rem;
  margin: 0 0 7px;
  font-weight: 400;
}

.trio__desc { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Source note ---------- */

.source {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  padding: clamp(24px, 3.6vw, 38px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(255, 250, 232, .85), rgba(255, 255, 255, .55));
}

.source__icon {
  width: clamp(64px, 9vw, 88px);
  border-radius: 21%;
  box-shadow: 0 10px 26px rgba(92, 80, 58, .18);
}

.source__text { margin: 0; font-size: .98rem; color: var(--ink-soft); }
.source__text a { color: var(--sage-deep); text-underline-offset: 3px; }

/* ---------- Links & buttons ---------- */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: .94rem;
  color: var(--sage-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(89, 102, 82, .34);
  padding-bottom: 2px;
  transition: gap 220ms var(--ease), border-color 220ms var(--ease);
}

.link-arrow:hover { gap: 12px; border-color: var(--sage-deep); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .6);
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.badge__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 252, 245, .96);
  padding-block: clamp(38px, 5vw, 58px);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
  justify-content: space-between;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: .9rem;
}

.footer__links a { color: var(--ink-soft); text-decoration: none; text-underline-offset: 3px; }
.footer__links a:hover { color: var(--ink); text-decoration: underline; }

.footer__fine {
  width: 100%;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: .8rem;
  color: var(--muted);
}

/* ---------- Document pages (support / privacy) ---------- */

.page-hero {
  padding-block: clamp(44px, 8vw, 88px) clamp(30px, 4vw, 46px);
  text-align: left;
}

.page-hero__title {
  font-family: Cardo, Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 14px 0 0;
  text-wrap: balance;
}

.page-hero__lede {
  margin: 18px 0 0;
  max-width: 56ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.tagrow li {
  font-size: .8rem;
  font-weight: 500;
  color: var(--sage-deep);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line-soft);
  padding: 6px 13px;
  border-radius: 999px;
}

.doc { padding-block: clamp(44px, 6vw, 76px); }

.doc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 4vw, 48px);
}

.card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(to bottom, rgba(255, 255, 255, .85), rgba(255, 252, 245, .55));
  padding: clamp(24px, 3.4vw, 36px);
}

.card__title {
  font-family: Cardo, Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.card__body { margin: 0; color: var(--ink-soft); }

.contact-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.contact-list li:first-child { padding-top: 0; border-top: 0; }

.contact-list__key {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 5px;
  min-width: 76px;
}

.contact-list__val { margin: 0; }
.contact-list__val a { color: var(--sage-deep); font-weight: 600; text-underline-offset: 3px; word-break: break-word; }
.contact-list__val small { display: block; color: var(--muted); font-size: .84rem; margin-top: 3px; }

.checklist {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: .96rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-top: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95), rgba(120, 135, 111, .18));
}

.faq { display: grid; gap: 0; }

.faq__item { border-top: 1px solid var(--line-soft); }
.faq__item:last-child { border-bottom: 1px solid var(--line-soft); }

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 40px 19px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.7px solid var(--sage);
  border-bottom: 1.7px solid var(--sage);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 260ms var(--ease);
}

.faq__item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }

.faq__item p {
  margin: 0 0 19px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: .98rem;
}

.faq__item p a { color: var(--sage-deep); text-underline-offset: 3px; }

.prose h2 {
  font-family: Cardo, Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  letter-spacing: -.01em;
  margin: 46px 0 0;
}

.prose h2:first-child { margin-top: 0; }

.prose p { margin: 14px 0 0; color: var(--ink-soft); }

.prose p a { color: var(--sage-deep); text-underline-offset: 3px; }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: rgba(120, 135, 111, .12);
  padding: 2px 6px;
  border-radius: 5px;
}

.prose ul { margin: 14px 0 0; padding-left: 1.15em; color: var(--ink-soft); }
.prose li { margin: 7px 0; }

.stamp {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .6);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .trio { grid-template-columns: minmax(0, 1fr); }

  .showcase__row,
  .showcase__row--flip {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 5vw, 36px);
    justify-items: center;
    text-align: center;
  }

  .showcase__row--flip .showcase__copy { order: 2; }
  .showcase__copy { max-width: 52ch; }
  .chips { justify-content: center; }
}

@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .verse { max-width: 100%; }
  .facts { flex-direction: column; align-items: center; gap: 5px; }
  .facts li + li::before { display: none; }
  .facts li { gap: 0; }
  .source { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .source__icon { margin-inline: auto; }
  .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .contact-list__key { padding-top: 0; }
  .nav__links { gap: 0; font-size: .88rem; }
}

@media (max-width: 440px) {
  .atm-card__text { padding: 13px 13px 15px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .spark, .bubble__ring { display: none; }
}
