/* Tidings pages: brand colour plus a CSS mock of an iPhone lock screen receiving mail. Loaded after site.css. */
body.app-tidings {
  --accent: #3b5bfd;
  --accent-ink: #ffffff;
  --accent-soft: #e4e9ff;
}
@media (prefers-color-scheme: dark) {
  body.app-tidings {
    --accent: #8ea2ff;
    --accent-ink: #0b1240;
    --accent-soft: #1c2453;
  }
}
.features.two { grid-template-columns: repeat(2, 1fr); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; counter-reset: step; }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 22px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.step h3 { margin: 0 0 6px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 8px; }
.flow .card { padding: 18px; }
.flow b { display: block; margin-bottom: 4px; }
.flow p { font-size: .92rem; }
@media (max-width: 820px) {
  .features.two, .steps, .flow { grid-template-columns: 1fr; }
}

/* Hero mock: an iPhone lock screen; notifications slide in one after another. */
.lock-mock { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.td-phone {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 9 / 19; padding: 11px; border-radius: 48px;
  background: linear-gradient(150deg, #34343c, #0c0c10 38%, #1b1b21);
  box-shadow: inset 0 0 0 1.5px #44444e, 0 34px 70px -26px rgba(59, 91, 253, .55), 0 16px 32px -18px rgba(0, 0, 0, .45);
}
.td-screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden; color: #fff;
  background: radial-gradient(90% 60% at 20% 10%, #6f86ff 0, transparent 60%), radial-gradient(80% 60% at 90% 90%, #ff7a4d 0, transparent 55%), linear-gradient(170deg, #2b3fb8, #141c55 70%);
}
.td-island { position: absolute; top: 2.4%; left: 50%; transform: translateX(-50%); width: 32%; height: 4.2%; border-radius: 999px; background: #000; }
.td-time { position: absolute; top: 12%; width: 100%; text-align: center; font-size: clamp(2.4rem, 9vw, 3.6rem); font-weight: 650; letter-spacing: -.02em; line-height: 1; }
.td-date { position: absolute; top: 9%; width: 100%; text-align: center; font-size: .85rem; font-weight: 600; opacity: .85; }
.td-notes { position: absolute; left: 4%; right: 4%; top: 40%; display: grid; gap: 8px; }
.td-note {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 2px 9px; align-items: start; padding: 10px 11px;
  border-radius: 18px; background: rgba(245, 246, 255, .78); color: #111; backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(-14px) scale(.97); animation: td-in 9s ease-out infinite;
}
.td-note img { grid-row: span 3; width: 30px; height: 30px; border-radius: 7px; }
.td-note b { font-size: .8rem; }
.td-note time { font-size: .7rem; color: #555; }
.td-note span { grid-column: 2 / 4; font-size: .78rem; line-height: 1.3; }
.td-note span.sub { font-weight: 600; }
.td-note span.body { color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-note:nth-child(2) { animation-delay: 1.4s; }
.td-note:nth-child(3) { animation-delay: 2.8s; }
.td-badge { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); width: 34%; height: 1.2%; border-radius: 999px; background: rgba(255, 255, 255, .7); }
.lock-mock figcaption { text-align: center; font-weight: 650; }
@keyframes td-in {
  0% { opacity: 0; transform: translateY(-14px) scale(.97); }
  6%, 80% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .td-note { animation: none; opacity: 1; transform: none; }
}
