/* Aasiya v31 — first-run tour, What is New sheet, How It Works screenshots,
   Privacy and Support pages. Uses the theme tokens from styles.css / themes.css. */

/* ---------------- tour ---------------- */
.tour-root { position: fixed; inset: 0; z-index: 9000; }
.tour-block { position: fixed; inset: 0; background: transparent; }
.tour-spot {
  position: fixed; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 3px var(--gold, #d6b25e), 0 0 0 9999px rgba(4, 12, 28, .7);
  transition: top .28s ease, left .28s ease, width .28s ease, height .28s ease;
}
.tour-card {
  position: fixed; left: 16px; right: 16px; max-width: 380px; margin: 0 auto;
  background: var(--surface, #fff); color: var(--text, #10245c);
  border: 1px solid var(--line); border-radius: var(--r-lg, 22px);
  padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  transition: top .28s ease, opacity .2s ease;
}
.tour-card:focus { outline: none; }
.tour-count { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.tour-title { font-size: 1.05rem; color: var(--gold-bright); margin-bottom: 6px; }
.tour-title:focus { outline: none; }
.tour-text { font-size: .92rem; line-height: 1.55; margin-bottom: 14px; }
.tour-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.tour-actions .tour-right { display: flex; gap: 8px; }
.tour-btn {
  font: inherit; font-size: .9rem; border-radius: var(--r-pill, 999px); padding: 9px 18px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
}
.tour-btn.primary { background: var(--accent, var(--gold)); color: var(--accent-ink, #21190a); border-color: transparent; font-weight: 600; }
.tour-btn.link { background: none; border-color: transparent; color: var(--text-dim); padding-left: 4px; }
.tour-btn:hover { filter: brightness(1.05); }
.tour-btn:focus-visible { outline: 3px solid var(--gold-dim, #d3ab55); outline-offset: 2px; }

/* ---------------- What is New sheet ---------------- */
.wn-root { position: fixed; inset: 0; z-index: 8900; display: flex; align-items: flex-end; justify-content: center; }
.wn-backdrop { position: absolute; inset: 0; background: rgba(4, 12, 28, .55); animation: wn-fade .2s ease; }
.wn-sheet {
  position: relative; width: 100%; max-width: 520px; max-height: 86dvh; overflow-y: auto;
  background: var(--surface, #fff); color: var(--text); border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0, 0, 0, .3);
  animation: wn-up .28s cubic-bezier(.16, 1, .3, 1);
}
.wn-sheet:focus { outline: none; }
.wn-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.wn-kicker { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.wn-title { font-size: 1.25rem; color: var(--gold-bright); margin: 2px 0 12px; }
.wn-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.wn-item { display: flex; gap: 12px; align-items: flex-start; }
.wn-mark { flex: 0 0 10px; height: 10px; margin-top: 6px; border-radius: 3px; background: var(--brand-red, var(--gold)); transform: rotate(45deg); }
.wn-item b { display: block; font-size: .96rem; margin-bottom: 2px; }
.wn-item span { font-size: .88rem; line-height: 1.5; color: var(--text-dim); }
.wn-done { width: 100%; }
@keyframes wn-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes wn-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- How It Works: real screenshots ---------------- */
.hiw-shot {
  display: block; width: min(100%, 230px); height: auto; margin: 2px auto 14px;
  border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(16, 36, 92, .14);
  background: var(--surface-2);
}
.hiw-shot.wide { width: 100%; border-radius: 14px; }
.hiw-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 6px 0 18px; }
.hiw-links a { text-decoration: none; }

/* ---------------- Privacy + Support ---------------- */
.doc-page { max-width: 680px; }
.doc-page .doc-date { font-size: .82rem; color: var(--text-dim); margin: -4px 0 14px; }
.doc-page h3 { font-size: 1rem; color: var(--gold-bright); margin: 20px 0 6px; }
.doc-page p, .doc-page li { font-size: .92rem; line-height: 1.65; color: var(--text); overflow-wrap: anywhere; }
.doc-page ul { padding-left: 20px; margin: 4px 0 8px; }
.doc-page li { margin-bottom: 4px; }
.doc-page a { color: var(--accent, var(--gold-bright)); }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 13px 14px; font-weight: 600; font-size: .94rem; list-style-position: inside; }
.faq summary:focus-visible { outline: 3px solid var(--gold-dim); outline-offset: 2px; border-radius: var(--r-md); }
.faq div { padding: 0 14px 13px; }
.support-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-top: 18px; }
.support-box label { display: block; font-weight: 600; margin-bottom: 8px; }
.support-box textarea {
  width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 11px; padding: 11px 13px; font: inherit; margin-bottom: 10px; resize: vertical;
}

@media (prefers-reduced-motion: reduce) {
  .tour-spot, .tour-card { transition: none; }
  .wn-sheet, .wn-backdrop { animation: none; }
}
