@font-face {
  font-family: 'Haskoy';
  src: url('assets/fonts/Haskoy-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-light: #ffffff;
  --bg-dark: #000;
  --ink: #0d0d0d;
  --ink-soft: #55565b;
  --paper: #fafaf9;
  --hairline: rgba(13,13,13,0.1);
  --hairline-dark: rgba(255,255,255,0.12);
  --accent-red: #e6362c;
  --white-soft: rgba(255,255,255,0.72);
  --white-faint: rgba(255,255,255,0.5);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Haskoy', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px) saturate(150%);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand-mark { width: 22px; height: auto; }
.main-nav {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.main-nav a { transition: color .15s ease; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active { font-weight: 700; }
.play-store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
  flex-shrink: 0;
}
.play-store-btn img { width: 15px; height: 15px; }
.brand-mark-invert { filter: brightness(0) saturate(100%); }
.play-store-btn:hover { background: #222; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 32px 60px;
  overflow: hidden;
}
.threads {
  position: absolute;
  top: 0;
  right: 0;
  width: 340px;
  height: 560px;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 22px;
}
.hero-copy p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-link { font-weight: 600; color: var(--ink-soft); padding: 13px 4px; }
.btn-link:hover { color: var(--ink); }
.arrow { display: inline-block; transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.hero-art { display: flex; justify-content: center; align-items: center; }
.pin-img {
  width: min(360px, 100%);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.12));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Alert / dark section ---------- */
.section-dark { background: var(--bg-dark); color: #fff; }
.alert-section { padding: 100px 32px; }
.alert-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.avar-tag { height: 24px; width: auto; margin-bottom: 26px; opacity: .95; }
.alert-copy h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.alert-copy h2 sup { font-size: .5em; color: var(--white-faint); }
.alert-copy > p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--white-soft);
  max-width: 440px;
  margin: 0 0 30px;
}
.footnotes p {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  margin: 0 0 8px;
  max-width: 440px;
}

.alert-art { display: flex; justify-content: center; }
.phone-frame {
  position: relative;
  width: min(340px, 100%);
}
.phone-frame img { width: 100%; border-radius: 30px; }
.phone-overlay {
  position: absolute;
  top: 8%;
  left: 12%;
  right: 12%;
  background: rgba(15,15,17,0.88);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px 16px 16px;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.overlay-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-red);
  line-height: 1.4;
  margin: 0 0 10px;
}
.overlay-ring {
  width: 68px;
  height: 68px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 3px solid var(--accent-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.overlay-ring span { font-size: 22px; font-weight: 800; line-height: 1; }
.overlay-ring small { font-size: 8px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.overlay-sub { font-size: 10px; color: rgba(255,255,255,0.45); margin: 0 0 12px; }
.overlay-btn {
  display: block;
  width: 100%;
  background: #fff;
  color: #0d0d0d;
  border: none;
  border-radius: 999px;
  padding: 9px 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 11.5px;
  margin-bottom: 8px;
  cursor: pointer;
}
.overlay-link { display: block; font-size: 10px; color: var(--accent-red); font-weight: 600; }

/* ---------- Notification / light section ---------- */
.notif-section {
  background: var(--paper);
  padding: 100px 32px 0;
  text-align: center;
}
.notif-inner { max-width: 760px; margin: 0 auto; }
.notif-section h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.lead { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 20px; }
.fine { font-size: 12.5px; color: #9a9a9a; margin: 0 0 60px; }
.notif-art { line-height: 0; }
.notif-art img { width: 100%; object-fit: cover; max-height: 560px; }

/* ---------- Family / sticker section ---------- */
.family-section {
  padding: 110px 32px;
  text-align: center;
}
.sticker-wrap { display: flex; justify-content: center; margin-bottom: 44px; }
.sticker { width: min(220px, 60%); filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); }
.family-copy { max-width: 640px; margin: 0 auto; }
.family-copy h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.family-copy p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--white-soft);
  margin: 0 0 34px;
}
.btn-outline {
  display: inline-block;
  background: #fff;
  color: #0d0d0d;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform .18s ease;
}
.btn-outline:hover { transform: translateY(-2px); }

/* ---------- Pricing grid ---------- */
.pricing-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
  margin-top: 56px;
}
.price-card {
  position: relative;
  background: #131313;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.price-card-highlight {
  background: #fff;
  color: #0d0d0d;
  border-color: #fff;
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-card-head { margin-bottom: 18px; }
.price-card-head h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  color: rgba(255,255,255,0.55);
}
.price-card-highlight .price-card-head h3 { color: rgba(13,13,13,0.55); }
.price-amount {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.price-amount span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  margin-left: 2px;
}
.price-card-highlight .price-amount span { color: rgba(13,13,13,0.4); }
.price-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.price-card-highlight .price-sub { color: rgba(13,13,13,0.5); }
.price-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  flex-grow: 1;
}
.price-features li {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.price-card-highlight .price-features li { color: rgba(13,13,13,0.75); }
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
}
.price-card-highlight .price-features li::before { color: rgba(13,13,13,0.35); }
.price-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0 0 16px;
}
.price-card-highlight .price-note { color: rgba(13,13,13,0.45); }
.price-cta {
  text-align: center;
  margin-top: auto;
  font-size: 13.5px;
  padding: 11px 20px;
}
.price-card-highlight .price-cta.btn-outline {
  background: #0d0d0d;
  color: #fff;
}

.price-footnote {
  max-width: 640px;
  margin: 28px auto 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.price-footnote a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.price-footnote a:hover { color: #fff; }

.family-cta { margin-top: 40px; }

/* ---------- Other section ---------- */
.other-section { padding: 90px 32px 70px; text-align: center; }
.other-section h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 60px;
}
.other-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.other-card { display: flex; flex-direction: column; align-items: center; }
.other-brand { height: 34px; width: auto; margin-bottom: 22px; }
.streaming-icon { height: 40px; }
.play-store-icon { height: 36px; }
.other-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
}
.platform-note {
  margin-top: 50px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #000;
  color: #fff;
  padding: 70px 32px 0;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--hairline-dark);
}
.footer-avar { height: 26px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); max-width: 300px; }
.footer-col h3 { font-size: 13px; font-weight: 700; margin: 0 0 16px; color: rgba(255,255,255,0.9); }
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
  transition: color .15s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
}

/* ---------- Page loading bar (branded, replaces relying on browser chrome) ---------- */
.page-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-red);
  z-index: 9999;
  transition: width .3s ease, opacity .3s ease;
  opacity: 1;
}
.page-loading-bar.done { opacity: 0; }

/* ---------- Transit scroll-progress line (homepage only) ---------- */
.transit-progress {
  position: relative;
  height: 3px;
}
.transit-track { position: absolute; inset: 0; background: var(--hairline); }
.transit-fill {
  position: absolute; top: 0; left: 0; height: 100%; width: 0%;
  background: var(--accent-red);
  transition: width .1s linear;
}
.transit-stations { position: absolute; top: 50%; left: 0; right: 0; height: 0; }
.transit-dot {
  position: absolute; top: 0; width: 9px; height: 9px;
  margin-left: -4.5px; margin-top: -4.5px;
  border-radius: 50%; background: #fff; border: 2px solid var(--hairline);
  cursor: pointer; padding: 0; transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.transit-dot:hover { transform: scale(1.35); }
.transit-dot.passed { background: var(--accent-red); border-color: var(--accent-red); }

/* ---------- Button magnetic-fill (matches Avar/Chat/AvaROBOT interaction language) ---------- */
.btn-primary, .btn-outline {
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s ease .03s, transform .18s ease, box-shadow .18s ease;
}
.btn-fill {
  position: absolute; left: var(--fx, 50%); top: var(--fy, 50%);
  width: 0; height: 0; border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .5s cubic-bezier(.4,0,.2,1), height .5s cubic-bezier(.4,0,.2,1);
  z-index: 0; pointer-events: none;
}
.btn-label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary .btn-fill { background: #fff; }
.btn-primary:hover .btn-fill, .btn-primary:focus-visible .btn-fill { width: 300px; height: 300px; }
.btn-primary:hover, .btn-primary:focus-visible { color: var(--ink); }
.btn-outline .btn-fill { background: var(--accent-red); }
.btn-outline:hover .btn-fill, .btn-outline:focus-visible .btn-fill { width: 300px; height: 300px; }
.btn-outline:hover, .btn-outline:focus-visible { color: #fff; }
.price-card-highlight .price-cta.btn-outline .btn-fill { background: #fff; }
.price-card-highlight .price-cta.btn-outline:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .btn-fill { transition: none !important; }
}

/* Opt-out for pages that don't want the magnetic-fill interaction (e.g. the
   panel login form) — add class="no-fill" alongside btn-primary/btn-outline. */
.btn.no-fill .btn-fill { display: none; }
.btn.no-fill:hover { filter: brightness(0.94); }
/* The base .btn-primary/.btn-outline hover rules flip text color to match a
   fill circle that's growing underneath — but .no-fill hides that circle,
   so the flip just makes the text invisible against a background that never
   actually changed. Lock the text color back to its resting value whenever
   .no-fill is present, at higher specificity so it wins over the base rule. */
.btn-primary.no-fill:hover, .btn-primary.no-fill:focus-visible { color: #fff; }
.btn-outline.no-fill:hover, .btn-outline.no-fill:focus-visible { color: #0d0d0d; }

/* .btn-dark: a plain dark pill button, used throughout the account panel
   (confirm/cancel actions etc.) — intentionally has no hover color-flip or
   fill effect, just the same subtle dimming every .no-fill button gets. */
.btn-dark {
  background: #1b1b1b;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-dark:hover { background: #242424; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pin-img { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .alert-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .other-grid { grid-template-columns: 1fr; gap: 56px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 10px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .play-store-btn { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { padding: 16px 20px; }
  .hero { padding: 60px 20px 40px; }
  .alert-section, .family-section, .other-section { padding: 70px 20px; }
  .notif-section { padding: 70px 20px 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid var(--hairline);
    gap: 18px;
  }

  .pricing-grid { grid-template-columns: 1fr; }
}
