/* Tracker mobile marketing — mobile-first, light glass */

:root {
  --bg: #f8f9fc;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.95);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --teal: #0d9488;
  --teal-soft: rgba(13, 148, 136, 0.12);
  --violet: #7c3aed;
  --violet-soft: rgba(124, 58, 237, 0.1);
  --blue: #2563eb;
  --rose: #e11d48;
  --amber: #d97706;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --radius: 16px;
  --radius-sm: 12px;
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --header-h: 56px;
  --bottom-nav-h: 64px;
  --cta-bar-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
  background: var(--bg);
  padding-bottom: calc(var(--bottom-nav-h) + var(--cta-bar-h) + var(--safe-b));
  -webkit-tap-highlight-color: transparent;
}

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(186, 230, 253, 0.5), transparent 60%),
    radial-gradient(ellipse 80% 40% at 100% 30%, rgba(221, 214, 254, 0.35), transparent 50%),
    linear-gradient(180deg, #fafbff 0%, #f5f8ff 50%, #f5fbf9 100%);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: 1.85rem; font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 800; }
h3 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 0.85em; }

a { color: var(--teal); text-decoration: none; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  color: var(--teal);
  flex-shrink: 0;
}

.icon.violet { background: var(--violet-soft); color: var(--violet); }
.icon.blue { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.icon.amber { background: rgba(217, 119, 6, 0.1); color: var(--amber); }
.icon.rose { background: rgba(225, 29, 72, 0.08); color: var(--rose); }
.icon.sm { width: 1.35rem; height: 1.35rem; border-radius: 6px; background: transparent; }
.icon svg { width: 1.25rem; height: 1.25rem; }
.icon.sm svg { width: 1rem; height: 1rem; }

.label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--violet));
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text) !important;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

/* Header */
.m-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.2s, box-shadow 0.2s;
}

.m-header.is-scrolled {
  background: rgba(248, 249, 252, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.m-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.logo span {
  background: linear-gradient(135deg, var(--teal), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.m-header .btn {
  width: auto;
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

/* Main sections */
.m-section {
  padding: 1.25rem 1rem 1.5rem;
}

.m-section:first-of-type {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem);
}

/* Hero */
.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 0.3em 0.75em;
  margin-bottom: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.hero-stats {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  margin: 0 -0.25rem;
}

.hero-stats::-webkit-scrollbar { display: none; }

.stat-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  min-width: 120px;
}

.stat-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--teal);
}

.stat-chip span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Phone mock */
.phone-mock {
  margin-top: 1.25rem;
  padding: 0.75rem;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #eef2f9);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.phone-screen {
  border-radius: 16px;
  background: #fff;
  padding: 0.75rem;
  min-height: 200px;
}

.mock-nav {
  display: flex;
  justify-content: space-around;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.mock-nav span {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.mock-nav span.on { color: var(--teal); font-weight: 600; }

.mock-task {
  padding: 0.55rem;
  border-radius: 10px;
  background: var(--teal-soft);
  border-left: 3px solid var(--teal);
  font-size: 0.75rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.mock-task.muted {
  background: rgba(15, 23, 42, 0.04);
  border-left-color: var(--violet);
}

/* Cards */
.card {
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.card-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.card-row .icon { margin-top: 0.1rem; }

.card h3 { font-size: 0.95rem; margin-bottom: 0.35em; color: var(--rose); }
.card.benefit h3 { color: var(--text); }

.card p {
  margin: 0;
  font-size: 0.88rem;
}

.outcome {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25em;
  font-size: 0.92rem;
}

/* Role tabs */
.role-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.role-tabs::-webkit-scrollbar { display: none; }

.role-tab {
  flex: 0 0 auto;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
}

.role-tab.is-active {
  background: var(--teal-soft);
  border-color: rgba(13, 148, 136, 0.3);
  color: var(--teal);
}

.role-panel { display: none; }
.role-panel.is-active { display: block; }

.role-panel .glass { padding: 1rem; }

.role-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.role-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

/* Compare horizontal scroll */
.compare-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0 0.75rem;
  margin: 0 -0.25rem;
}

.compare-track::-webkit-scrollbar { display: none; }

.compare-card {
  flex: 0 0 88%;
  scroll-snap-align: center;
  padding: 1rem;
}

.compare-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.compare-card.tracker {
  border: 2px solid rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.04);
}

.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.82rem;
}

.compare-row:last-child { border-bottom: none; }

.compare-row .val-yes { color: var(--teal); font-weight: 600; }
.compare-row .val-no { color: var(--text-muted); }
.compare-row .val-part { color: var(--amber); }

.compare-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.compare-dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(15, 23, 42, 0.15);
  cursor: pointer;
}

.compare-dots button.is-active {
  background: var(--teal);
  width: 18px;
  border-radius: 999px;
}

/* Steps */
.steps { display: flex; flex-direction: column; gap: 0.65rem; }

.step {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(13, 148, 136, 0.25);
  line-height: 1;
}

.step p { margin: 0; font-size: 0.88rem; }

/* Scenario */
.quote-card {
  padding: 1rem;
  margin-bottom: 0.65rem;
}

.quote-who {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet);
  margin-bottom: 0.5rem;
}

.quote-card blockquote {
  margin: 0;
  font-style: italic;
  color: var(--text);
  font-size: 0.92rem;
  border-left: 3px solid var(--teal);
  padding-left: 0.75rem;
}

.quote-result {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* FAQ */
.m-faq-item { border-bottom: 1px solid rgba(15, 23, 42, 0.08); }

.m-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.m-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.m-faq-item.is-open .m-faq-a { max-height: 200px; }

.m-faq-a p {
  padding-bottom: 1rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.m-faq-item.is-open .icon.chevron { transform: rotate(180deg); }
.icon.chevron { transition: transform 0.25s; background: transparent; color: var(--text-muted); width: 1.25rem; height: 1.25rem; }

/* CTA section */
.cta-section {
  text-align: center;
  padding: 1.5rem 1rem;
}

.cta-section .icon {
  margin: 0 auto 0.75rem;
  width: 3rem;
  height: 3rem;
}

.cta-section .icon svg { width: 1.5rem; height: 1.5rem; }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: calc(var(--cta-bar-h) + var(--safe-b));
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--bottom-nav-h);
  display: flex;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0 0.25rem;
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0;
}

.bottom-nav a.is-active { color: var(--teal); }

.bottom-nav .nav-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav .nav-icon svg { width: 1.2rem; height: 1.2rem; }

/* Sticky CTA bar */
.cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 1rem calc(0.65rem + var(--safe-b));
  background: rgba(248, 249, 252, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cta-bar .btn { flex: 1; min-height: 44px; font-size: 0.85rem; }

.desktop-link {
  text-align: center;
  padding: 0.5rem 1rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.desktop-link a { font-weight: 600; }

/* Reveal */
.m-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.m-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .m-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Tablet+ — still mobile layout but centered */
@media (min-width: 480px) {
  .m-section { max-width: 440px; margin-inline: auto; }
  .bottom-nav, .cta-bar, .m-header-inner { max-width: 440px; margin-inline: auto; left: 0; right: 0; }
  .compare-card { flex: 0 0 75%; }
}

@media (min-width: 768px) {
  body::before {
    content: "Откройте pre.tracker.asydney.space для desktop-версии";
    display: block;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.35rem;
    background: var(--teal-soft);
    color: var(--teal);
  }
}
