/* ToMi additions on top of the original stylesheet (style.css stays as in the original). */

/* "What ToMi manages": the travel banner under the four cubes, and the natural-understanding note */
.travel-banner {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 28px 32px; border-radius: var(--r-lg); background: var(--gold-gradient); color: #fff;
  box-shadow: var(--shadow-gold);
}
.travel-banner h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.travel-banner p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.92); max-width: 640px; }
.travel-items { display: flex; gap: 14px; flex-shrink: 0; }
.travel-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.travel-item .icon-circle { margin: 0; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); color: #fff; }
.benefits-footnote { margin: 18px 0 0; text-align: center; font-size: 13.5px; color: var(--text-dim); }

/* Dashboard preview: three screens that take turns */
.dash-slides { display: grid; }
.dash-slide { grid-area: 1 / 1; opacity: 0; animation: tomi-dash-cycle 12s infinite; }
.dash-slide:nth-child(2) { animation-delay: 4s; }
.dash-slide:nth-child(3) { animation-delay: 8s; }
@keyframes tomi-dash-cycle { 0% { opacity: 0; } 4%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }
.dash-slide-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dash-slide-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); animation: tomi-dot-cycle 12s infinite; }
.dash-slide-dots span:nth-child(2) { animation-delay: 4s; }
.dash-slide-dots span:nth-child(3) { animation-delay: 8s; }
@keyframes tomi-dot-cycle { 0%, 33% { background: var(--gold-500); } 34%, 100% { background: var(--border-strong); } }
@media (prefers-reduced-motion: reduce) {
  .dash-slide, .dash-slide-dots span { animation: none; }
  .dash-slide:first-child { opacity: 1; }
}

/* Footer contact details and legal links */
.footer-contact { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--text-dim); }
.footer-contact-title { font-weight: 700; color: var(--text); }
.footer-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-contact a { color: inherit; }
.footer-hours { margin: 2px 0 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.footer-legal, .footer-legal a { color: var(--text-dim); }
.footer-legal a:hover { color: var(--gold-500); }

/* Legal pages */
.legal { padding-top: 48px; padding-bottom: 80px; }
.legal h1 { font-size: 32px; margin: 0 0 8px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--text-dim); line-height: 1.75; font-size: 15px; }
.legal .legal-meta { font-size: 13px; color: var(--text-faint); }
.legal .draft-note { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; }

@media (max-width: 760px) {
  .travel-banner { flex-direction: column; align-items: flex-start; padding: 22px; }
  .travel-items { width: 100%; justify-content: space-around; }
}

/* Signup: the plan chosen on the landing page */
.chosen-plan { text-align: center; font-size: 14px; color: var(--text-dim); margin: -6px 0 18px; }

/* Payment result: two buttons side by side */
.msg-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Cancel popup (opened by #cancel, CSS only) */
.retention-overlay { display: none; position: fixed; inset: 0; background: rgba(31,31,31,.45); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.retention-overlay:target { display: flex; }
.retention-box { position: relative; max-width: 380px; text-align: center; }
.retention-box h2 { font-size: 20px; margin: 0 0 10px; }
.retention-box p { font-size: 14.5px; font-weight: 400; color: var(--text-dim); margin: 0 0 18px; line-height: 1.6; }
.retention-close { position: absolute; top: 10px; inset-inline-end: 14px; font-size: 22px; line-height: 1; color: var(--text-dim); text-decoration: none; }

/* Personal area: link on an upcoming flight / hotel / restaurant */
.plan-link { font-size: 13px; font-weight: 700; color: var(--gold-500); white-space: nowrap; text-decoration: none; }
.plan-link:hover { color: var(--gold-600); }

/* Personal area: six summary cubes (the sixth is upcoming flights, restaurants and hotels) */
.stats-grid { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* "Add to Home Screen" banner and its steps sheet (install.js). Phones only. */
.install-banner { position: fixed; z-index: 150; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 4px; padding: 8px; background: var(--gold-gradient); color: #fff; border-radius: var(--r-md); box-shadow: 0 14px 34px -12px rgba(24,122,56,.55); }
.install-banner[hidden], .install-sheet-backdrop[hidden] { display: none; }
body.has-install-banner { padding-bottom: calc(var(--install-h, 64px) + 24px + env(safe-area-inset-bottom)); }
.install-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px; background: none; border: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; border-radius: var(--r-sm); }
.install-icon { width: 44px; height: 44px; flex: none; border-radius: 11px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.install-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.install-text strong { font-size: 15.5px; font-weight: 800; }
.install-text span { font-size: 13px; opacity: .95; }
.install-close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,.18); border: 0; border-radius: 999px; color: #fff; cursor: pointer; }
.install-close svg, .install-share { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.install-open:focus-visible, .install-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.install-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.install-sheet-backdrop { position: fixed; inset: 0; z-index: 210; display: flex; align-items: flex-end; justify-content: center; background: rgba(31,31,31,.45); }
.install-sheet { width: 100%; max-width: 480px; max-height: calc(100% - 24px); overflow-y: auto; background: var(--card); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0,0,0,.18); }
.install-sheet:focus { outline: none; }
.install-sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.install-sheet-head h2 { font-size: 19px; margin: 0; }
.install-open-safari, .install-open-browser { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; margin: 0 0 12px; }
.install-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.install-steps[hidden], .install-open-safari[hidden], .install-open-browser[hidden] { display: none; }
.install-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.5; }
.install-num { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: rgba(36,161,72,.12); color: var(--gold-600); font-weight: 800; font-size: 14px; }
.install-share { flex: none; width: 22px; height: 22px; color: var(--gold-600); }
.install-actions { display: flex; flex-direction: column; gap: 10px; }
.install-actions .btn { width: 100%; justify-content: center; }
body.install-sheet-open { overflow: hidden; }

/* Hero: a highlighted phrase ("כרטיסים להופעות") never splits across lines. */
.hero .sub .hl { white-space: nowrap; }
