/* ╔══════════════════════════════════════════════════════════╗
   ║  MORNING ANXIETY ARCHIVE — anti-wellness landing         ║
   ║  Design: Headspace + banking-app UI. Zero wellness clichés ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --white:         #FFFFFF;
  --near-black:    #1A1A1A;
  --gray-dark:     #3A3A3A;
  --gray-mid:      #6B6B6B;
  --gray-light:    #A8A8A8;
  --gray-border:   #E0E0E0;
  --gray-bg:       #F7F7F7;
  --accent-lilac:  #9F8290;
  --accent-lilac-dim: rgba(159,130,144,0.12);

  /* Notification app colors */
  --tg-blue:       #2AABEE;
  --mono-black:    #1A1A1A;
  --glovo-yellow:  #FFC244;
  --insta-purple:  #833AB4;
  --cal-red:       #FF3B30;

  --font-display:  'Inter', sans-serif;
  --font-body:     'Instrument Sans', sans-serif;

  --radius-card:   16px;
  --radius-btn:    12px;
  --shadow-card:   0 2px 16px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-soft:   0 4px 24px rgba(0,0,0,0.08);

  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Scroll-driven hero state (set by JS) */
  --hero-progress: 0;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--near-black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Section ───────────────────────────────────────────────── */
.section {
  padding: 60px 0;
}
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 28px;
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  /* Tall to give scroll room for animation */
  min-height: 280vh;
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 100px;
  overflow: hidden;
  background: var(--white);
}

/* ── Notification stack ────────────────────────────────────── */
.notif-stack {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100vw - 40px));
  height: 420px;
  pointer-events: none;
  z-index: 10;
}

.notif-card {
  position: absolute;
  left: 0; right: 0;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  will-change: opacity, transform;
  /* transition added via JS after load — avoids flash on mount */
}

/* Stack layers: card[1]=newest/front, card[5]=oldest/back */
.notif-card:nth-child(1) { top: 0;   z-index: 5; transform: translateY(0px) scale(1);    }
.notif-card:nth-child(2) { top: 4px; z-index: 4; transform: translateY(82px) scale(1); }
.notif-card:nth-child(3) { top: 4px; z-index: 3; transform: translateY(164px) scale(1); }
.notif-card:nth-child(4) { top: 4px; z-index: 2; transform: translateY(246px) scale(1); }
.notif-card:nth-child(5) { top: 4px; z-index: 1; transform: translateY(328px) scale(1); }

.notif-card.is-dismissed {
  opacity: 0 !important;
  transform: translateY(-48px) scale(0.92) !important;
}

/* App icon — colored circle with letter */
.notif-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.notif-icon--tg   { background: var(--tg-blue); }
.notif-icon--mono { background: var(--mono-black); }
.notif-icon--glo  { background: var(--glovo-yellow); }
.notif-icon--insta{ background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.notif-icon--cal  { background: var(--white); border: 1px solid var(--gray-border); }

.notif-icon-svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}
.notif-icon--cal .notif-icon-svg { fill: var(--cal-red); }

.notif-body {
  flex: 1;
  min-width: 0;
}
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.notif-app {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--near-black);
  letter-spacing: -0.01em;
}
.notif-time {
  font-size: 11px;
  color: var(--gray-light);
}
.notif-sender {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--near-black);
  display: block;
}
.notif-msg {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Hero timer ────────────────────────────────────────────── */
.hero__timer {
  text-align: center;
  opacity: 1;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 5;
}
.hero__timer.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.timer-display {
  font-family: var(--font-display);
  font-size: clamp(56px, 18vw, 96px);
  font-weight: 800;
  color: var(--near-black);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.timer-meta {
  font-size: 13px;
  color: var(--gray-mid);
  margin-top: 8px;
  letter-spacing: 0.01em;
}

/* ── Hero content (H1 + CTA) ───────────────────────────────── */
.hero__content {
  text-align: center;
  opacity: 1;
  transform: translateY(24px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
  pointer-events: none;
  z-index: 5;
  margin-top: 20px;
}
.hero__content.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 7.5vw, 48px);
  font-weight: 800;
  color: var(--near-black);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero__sub {
  font-size: clamp(14px, 3.5vw, 16px);
  color: var(--gray-mid);
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--near-black);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(26,26,26,0.25);
}
.btn--primary:hover {
  background: var(--gray-dark);
  box-shadow: 0 4px 20px rgba(26,26,26,0.30);
}
.btn--ghost {
  background: transparent;
  color: var(--near-black);
  border: 1.5px solid var(--gray-border);
}
.btn--ghost:hover { border-color: var(--near-black); }
.btn--full { width: 100%; }
.btn--large { padding: 18px 36px; font-size: 17px; }

/* Apple Pay button */
.btn--applepay {
  background: var(--near-black);
  color: var(--white);
  font-size: 0; /* hide text, rely on logo */
  padding: 0;
  height: 52px;
  width: 100%;
  border-radius: var(--radius-btn);
  position: relative;
  overflow: hidden;
}
.btn--applepay::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 40'%3E%3Ctext x='50%25' y='75%25' text-anchor='middle' fill='white' font-size='18' font-family='-apple-system,BlinkMacSystemFont,sans-serif' font-weight='500'%3E Pay%3C/text%3E%3C/svg%3E") center/contain no-repeat;
}
.btn--applepay.hidden { display: none; }

/* ════════════════════════════════════════════════════════════
   ANTI-LIST SECTION
   ════════════════════════════════════════════════════════════ */

.anti-list {
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}

.anti-list .container {
  max-width: 640px;
}

.anti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .anti-grid { grid-template-columns: repeat(3, 1fr); }
}

.anti-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-border);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--near-black);
}
.anti-icon {
  font-size: 14px;
  flex-shrink: 0;
  font-weight: 700;
}
.anti-item--no .anti-icon { color: var(--gray-mid); }
.anti-item--yes {
  border-color: var(--near-black);
  background: var(--near-black);
  color: var(--white);
}
.anti-item--yes .anti-icon { color: var(--white); }

/* ════════════════════════════════════════════════════════════
   OPUS INSIGHT SECTION
   ════════════════════════════════════════════════════════════ */

.insight {
  padding: 80px 0;
}
.insight__quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 5.5vw, 38px);
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-align: center;
  border: none;
}
.insight__quote p + p {
  margin-top: 4px;
}
.insight__em {
  color: var(--accent-lilac);
}
.insight__attribution {
  font-size: 13px;
  color: var(--gray-light);
  margin-top: 24px;
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   DIVIDER — geometric тиша pattern
   ════════════════════════════════════════════════════════════ */

.divider {
  height: 40px;
  width: 100%;
  overflow: hidden;
  opacity: 0.3;
}
.divider svg { width: 100%; height: 100%; }

/* ════════════════════════════════════════════════════════════
   MEDITATIONS SECTION
   ════════════════════════════════════════════════════════════ */

.meditations {
  background: var(--white);
}
.meditations__intro {
  font-size: 15px;
  color: var(--gray-mid);
  margin-bottom: 32px;
  line-height: 1.6;
}

.med-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 40px;
}

@media (min-width: 600px) {
  .med-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

.med-item {
  padding: 14px;
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  background: var(--white);
  transition: border-color var(--transition);
}
.med-item:hover { border-color: var(--near-black); }

.med-item--photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  padding: 0;
  border: none;
}
.med-item--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(20%);
}
.med-item--photo .med-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.8) 0%, transparent 100%);
  padding: 20px 14px 14px;
  border-radius: 0 0 12px 12px;
}
.med-item--photo .med-num {
  color: rgba(255,255,255,0.6);
}
.med-item--photo .med-title {
  color: var(--white);
}
.med-item--photo .med-dur {
  color: rgba(255,255,255,0.5);
}

.med-num {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.med-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--near-black);
  line-height: 1.3;
  margin-bottom: 4px;
}
.med-dur {
  font-size: 11px;
  color: var(--gray-light);
}

/* ════════════════════════════════════════════════════════════
   MARINA BLOCK (minimal)
   ════════════════════════════════════════════════════════════ */

.marina-block {
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-border);
}
.marina-block .container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.marina-block__photo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-lilac-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.marina-block__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.marina-block__photo-placeholder {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-lilac);
}
.marina-block__text {}
.marina-block__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 6px;
}
.marina-block__desc {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.55;
  max-width: 440px;
}

/* ════════════════════════════════════════════════════════════
   BUY SECTION
   ════════════════════════════════════════════════════════════ */

.buy {
  background: var(--white);
}
.buy__card {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 420px;
  margin: 0 auto;
}
.buy__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 12px;
}
.buy__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--near-black);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.buy__subtitle {
  font-size: 14px;
  color: var(--gray-mid);
  margin-bottom: 24px;
}
.buy__price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.buy__price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--near-black);
  letter-spacing: -0.04em;
  line-height: 1;
}
.buy__price-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-mid);
}
.buy__price-note {
  font-size: 12px;
  color: var(--gray-light);
  margin-bottom: 24px;
}
.buy__features {
  margin-bottom: 24px;
}
.buy__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-mid);
  padding: 5px 0;
  border-bottom: 1px solid var(--gray-border);
}
.buy__feature:last-child { border-bottom: none; }
.buy__feature-icon {
  color: var(--near-black);
  font-size: 14px;
  flex-shrink: 0;
}
.buy__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Pay form */
.pay-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pay-form__input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 15px;
  color: var(--near-black);
  background: var(--white);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.pay-form__input:focus {
  outline: none;
  border-color: var(--near-black);
}
.pay-form__input::placeholder { color: var(--gray-light); }

/* OR divider */
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-light);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-border);
}

/* Trust badges */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.trust-badge {
  font-size: 11px;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ════════════════════════════════════════════════════════════
   STICKY CTA BAR
   ════════════════════════════════════════════════════════════ */

.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray-border);
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar__inner {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sticky-bar__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--near-black);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-bar__price {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--near-black);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   TELEGRAM COUNTDOWN MODAL
   ════════════════════════════════════════════════════════════ */

.tg-modal {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tg-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.tg-modal__card {
  background: var(--white);
  border-radius: 20px 20px 16px 16px;
  padding: 32px 28px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  transform: translateY(40px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tg-modal.is-open .tg-modal__card { transform: translateY(0); }
.tg-modal__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.tg-modal__sub {
  font-size: 14px;
  color: var(--gray-mid);
  margin-bottom: 24px;
  line-height: 1.5;
}
.tg-modal__counter {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--near-black);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */

.footer {
  padding: 32px 20px;
  border-top: 1px solid var(--gray-border);
  background: var(--gray-bg);
}
.footer__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--near-black);
}
.footer__copy {
  font-size: 12px;
  color: var(--gray-light);
}
.footer__links {
  display: flex;
  gap: 16px;
}
.footer__links a {
  font-size: 12px;
  color: var(--gray-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — tablet (768px+)
   ════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
  .hero__sticky { padding: 60px 40px 80px; }
  .notif-stack { width: 380px; }
  .section { padding: 80px 0; }
  .buy__card { padding: 40px 36px; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — desktop (1280px+)
   ════════════════════════════════════════════════════════════ */

@media (min-width: 1280px) {
  .hero__h1 { font-size: 52px; }
  .timer-display { font-size: 104px; }
  .med-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .anti-grid { grid-template-columns: repeat(4, 1fr); }
  .marina-block .container { gap: 32px; }
}

/* ════════════════════════════════════════════════════════════
   PREFERS REDUCED MOTION
   ════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .hero {
    min-height: auto;
  }
  .hero__sticky {
    position: relative;
    height: auto;
    padding: 80px 20px 60px;
  }
  .notif-stack {
    position: relative;
    top: auto; left: auto;
    transform: none;
    margin-bottom: 32px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .notif-card {
    position: relative;
    top: auto !important;
    transform: none !important;
    opacity: 0.3 !important;
  }
  .hero__timer,
  .hero__content {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   UTILITY
   ════════════════════════════════════════════════════════════ */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.hidden { display: none !important; }
