:root {
  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --green: #22C55E;
  --amber: #F59E0B;
  --bg: #0F172A;
  --card: #1E293B;
  --text: #FFFFFF;
  --muted: #CBD5E1;
  --muted-soft: #94A3B8;
  --border: rgba(148,163,184,.22);
  --shadow: 0 22px 70px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.24), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(34,197,94,.13), transparent 30rem),
    linear-gradient(180deg, #0F172A 0%, #111827 55%, #0F172A 100%);
  color: var(--text);
  line-height: 1.58;
}
a { color: inherit; }
.app-page { width: min(100%, 1120px); margin: 0 auto; padding-bottom: 34px; }
.hero {
  min-height: auto;
  display: grid;
  align-items: center;
  padding: clamp(28px, 5vw, 62px) clamp(16px, 5vw, 70px) clamp(18px, 4vw, 40px);
}
.hero-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.logo-link { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
.hero-logo {
  display: block;
  width: min(640px, 94vw);
  max-height: 310px;
  object-fit: contain;
  margin: 0 auto 10px;
  filter: drop-shadow(0 20px 55px rgba(0,0,0,.32));
  animation: fadeIn .6s ease both;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  margin: 0 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-weight: 800;
  font-size: .92rem;
}
h1 { margin: 0 0 12px; font-size: clamp(2rem, 5.2vw, 4.5rem); line-height: 1.02; letter-spacing: -.04em; }
h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 3vw, 2.1rem); line-height: 1.12; }
p { color: var(--muted); margin: 0 0 16px; }
.lead { max-width: 760px; margin-inline: auto; font-size: clamp(1.03rem, 1.8vw, 1.24rem); }
.download-cta {
  width: min(100%, 640px);
  min-height: 92px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 56px 1fr 38px;
  gap: 16px;
  align-items: center;
  text-align: left;
  padding: 18px 20px;
  border-radius: 28px;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(59,130,246,.96), rgba(34,197,94,.88)),
    var(--blue);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 22px 55px rgba(59,130,246,.24);
  transition: transform .18s ease, box-shadow .18s ease;
}
.download-cta:hover { transform: translateY(-2px); box-shadow: 0 28px 70px rgba(59,130,246,.30); }
.download-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255,255,255,.18);
  font-size: 1.65rem;
}
.download-cta strong { display: block; font-size: clamp(1.22rem, 2.5vw, 1.55rem); color: #fff; }
.download-cta small { display: block; color: rgba(255,255,255,.82); font-weight: 750; }
.download-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-weight: 950;
}
.app-menu {
  display: grid;
  gap: 14px;
  padding: 0 clamp(14px, 4vw, 42px) clamp(36px, 6vw, 74px);
}
.app-panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30,41,59,.95), rgba(30,41,59,.74));
  box-shadow: 0 12px 44px rgba(0,0,0,.18);
  overflow: hidden;
}
.app-panel summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 46px 1fr 28px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 17px 20px;
  user-select: none;
}
.app-panel summary::-webkit-details-marker { display: none; }
.app-panel summary::after {
  content: "⌄";
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.06);
  transition: transform .22s ease, background .22s ease;
}
.app-panel[open] summary::after { transform: rotate(180deg); background: rgba(59,130,246,.22); }
.summary-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(59,130,246,.16);
  font-size: 1.35rem;
}
.app-panel strong { display: block; font-size: clamp(1.05rem, 2vw, 1.24rem); }
.app-panel small { display: block; margin-top: 2px; color: var(--muted-soft); font-weight: 650; }
.panel-content {
  border-top: 1px solid var(--border);
  padding: 18px;
  animation: openPanel .24s ease both;
}
.feature-list, .price-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.feature-list article, .price-list article {
  min-width: 0;
  background: rgba(15,23,42,.42);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}
.feature-list h3, .price-list h3 { margin: 0 0 8px; font-size: 1.04rem; }
.price { font-size: 2rem; font-weight: 950; color: #fff; margin: 8px 0 4px; }
.badge { display: inline-flex; padding: 4px 8px; margin-bottom: 10px; border-radius: 999px; background: var(--green); color: #061225; font-weight: 950; font-size: .78rem; }
.highlight { box-shadow: inset 0 0 0 1px rgba(34,197,94,.28); }
.fineprint { grid-column: 1 / -1; margin: 4px 4px 0; font-size: .92rem; color: var(--muted-soft); }
.legal-text { padding: 22px; }
.legal-text p { max-width: 78ch; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}
.text-link.strong { background: rgba(59,130,246,.18); }
.footer {
  border-top: 1px solid var(--border);
  padding: 24px clamp(18px, 5vw, 70px);
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  background: rgba(15,23,42,.42);
}
.footer a { color: var(--muted); }
.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  padding: 12px clamp(16px, 5vw, 70px);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(15,23,42,.9);
  backdrop-filter: blur(16px);
}
.mini-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; }
.mini-brand img { width: 38px; height: 38px; object-fit: contain; }
.mini-app-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(59,130,246,.18);
  border: 1px solid var(--border);
  font-weight: 850;
}
.legal-page {
  width: min(100%, 1050px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) clamp(14px, 4vw, 34px);
}
.legal-document {
  background: rgba(30,41,59,.82);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(22px, 5vw, 48px);
  box-shadow: var(--shadow);
}
.legal-document h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-top: 12px; }
.legal-document h2 { margin-top: 30px; color: #fff; }
.legal-document h3 { margin: 22px 0 8px; color: #fff; }
.legal-document p { color: var(--muted); }
.legal-document .numbered {
  padding-left: 14px;
  border-left: 3px solid rgba(59,130,246,.32);
}
.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  font-weight: 850;
}
.legal-table-wrap { overflow-x: auto; margin: 14px 0 22px; }
.legal-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.legal-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: top;
  color: var(--muted);
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes openPanel { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 780px) {
  .hero-logo { width: min(530px, 96vw); max-height: 260px; }
  .download-cta { grid-template-columns: 50px 1fr 34px; min-height: 84px; border-radius: 24px; }
  .download-icon { width: 50px; height: 50px; border-radius: 18px; }
  .feature-list, .price-list { grid-template-columns: 1fr; }
  .app-panel summary { grid-template-columns: 42px 1fr 26px; padding: 15px; min-height: 76px; }
  .summary-icon { width: 42px; height: 42px; border-radius: 14px; }
  .panel-content { padding: 14px; }
  .legal-text { padding: 18px; }
  .legal-header { align-items: flex-start; flex-direction: column; }
}

.update-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 9999;
  width: min(calc(100% - 28px), 520px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(59,130,246,.45);
  border-radius: 18px;
  background: rgba(15,23,42,.96);
  box-shadow: 0 20px 70px rgba(0,0,0,.36);
  color: #fff;
  backdrop-filter: blur(16px);
}
.update-toast[hidden] { display: none; }
.update-toast button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.offline-page { min-height: 100vh; display: grid; place-items: center; }
