/* ============================================================
   Tavy landing — style.css
   Palette taken from the app's "Voltage" design system:
   cyan → emerald → lime accents over a blue-carbon navy.
   ============================================================ */

:root {
  /* Bright accents — decoration only (blobs, glows, borders). */
  --cyan: #06b6d4;
  --emerald: #10b981;
  --lime: #84cc16;
  --grad: linear-gradient(120deg, var(--cyan), var(--emerald) 55%, var(--lime));

  /* Deep accents — anything that carries white text or reads as text.
     These are the app's own light-theme roles, so they clear WCAG AA. */
  --cyan-deep: #0e7490;
  --emerald-deep: #067a45;
  --lime-deep: #3f6212;
  --grad-deep: linear-gradient(120deg, var(--cyan-deep), var(--emerald-deep) 55%, var(--lime-deep));
  --brand: var(--emerald-deep);

  /* Extra app roles */
  --streak: #c2410c;
  --gold: #b07908;

  --ink: #0c1220;
  --ink-soft: #33405a;
  --muted: #5d6b84;
  --bg: #f4f8fa;
  --surface: #ffffff;
  --line: #dde7ee;
  --navy-900: #080b12;
  --navy-800: #101a2c;
  --shadow-sm: 0 1px 2px rgba(12, 18, 32, 0.05), 0 4px 16px rgba(12, 18, 32, 0.06);
  --shadow-lg: 0 8px 24px rgba(12, 18, 32, 0.08), 0 24px 64px rgba(6, 122, 69, 0.16);
  --radius: 20px;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", var(--font-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

.container {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.grad-text {
  background: var(--grad-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

/* Lucide icons default sizing */
svg.lucide { width: 1.25em; height: 1.25em; stroke-width: 2; flex-shrink: 0; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 248, 250, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.brand-mark { width: 30px; height: 30px; border-radius: 7px; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--grad-deep);
  color: #fff !important;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(6, 122, 69, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 122, 69, 0.45);
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.lang-toggle, .menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: 600 0.85rem var(--font-body);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lang-toggle:hover, .menu-toggle:hover { border-color: var(--brand); color: var(--ink); }

.menu-toggle { display: none; padding: 0.45rem 0.6rem; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  pointer-events: none;
}

.hero-blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  top: -180px; right: -120px;
}

.hero-blob-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--lime), transparent 70%);
  bottom: -200px; left: -140px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.store-badges.center { justify-content: center; }

.badge-wrap {
  position: relative;
  display: inline-block;
}

a.badge-wrap { transition: transform 0.18s ease; }

a.badge-wrap:hover { transform: translateY(-2px); }

.badge-wrap[aria-disabled="true"] .badge {
  filter: grayscale(0.35);
  opacity: 0.75;
}

.badge { height: 52px; width: auto; border-radius: 8px; }
.badge-google { height: 76px; margin: -12px; } /* google badge png has built-in padding */

.soon-chip {
  position: absolute;
  top: -10px;
  right: -8px;
  z-index: 1;
  background: var(--grad-deep);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(6, 122, 69, 0.4);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta svg.lucide { color: var(--brand); }

/* ============ Phone mockup ============ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  width: 300px;
  border-radius: 34px;
  padding: 1.15rem 1rem 1.4rem;
  background: radial-gradient(120% 70% at 50% 0%, var(--navy-800), var(--navy-900) 70%);
  border: 1px solid rgba(120, 200, 190, 0.16);
  box-shadow: var(--shadow-lg);
  transform: rotate(2.5deg);
  color: #e8edf7;
  font-size: 0.8rem;
  overflow: hidden;
}

.phone-notch {
  width: 74px;
  height: 5px;
  border-radius: 999px;
  background: rgba(232, 237, 247, 0.22);
  margin: 0 auto 1rem;
}

/* Level + XP row */
.m-level {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.m-level-chip {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #06210f;
  background: linear-gradient(120deg, #4ade80, #a3e635);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.m-xp-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(232, 237, 247, 0.14);
  overflow: hidden;
}

.m-xp-fill {
  width: 62%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #a3e635);
}

.m-xp-value { font-size: 0.62rem; color: #a6b2c6; font-variant-numeric: tabular-nums; }

/* Ring */
.m-ring { position: relative; width: 176px; margin: 0 auto 0.9rem; }
.m-ring svg { width: 100%; height: auto; display: block; transform: rotate(-90deg); }

.m-ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.m-steps {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: #f2f7ff;
}

.m-goal { font-size: 0.66rem; color: #a6b2c6; }

/* Metrics line */
.m-metrics {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  font-size: 0.66rem;
  color: #a6b2c6;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.1rem;
}

.m-metrics span { display: inline-flex; align-items: center; gap: 0.25rem; }
.m-metrics svg.lucide { width: 12px; height: 12px; color: #22d3ee; }

/* Cards inside the mockup */
.m-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 14px;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.6rem;
}

.m-card-streak {
  background: linear-gradient(150deg, #3a1608, #1a1210);
  border: 1px solid rgba(255, 122, 24, 0.28);
}

.m-card-streak svg.lucide { color: #ff7a18; width: 20px; height: 20px; }

.m-card-achievement {
  background: #171e2e;
  border: 1px solid rgba(232, 237, 247, 0.09);
  margin-bottom: 0;
}

.m-card-achievement svg.lucide { color: #facc15; width: 20px; height: 20px; }

.m-card strong { display: block; font-size: 0.74rem; font-weight: 700; }
.m-card small { font-size: 0.63rem; color: #a6b2c6; }

.m-week { display: flex; gap: 4px; margin-left: auto; }

.m-week i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(232, 237, 247, 0.2);
}

.m-week i.on { background: #ff7a18; }

/* Floating cards over the mockup */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(221, 231, 238, 0.9);
  border-radius: 16px;
  padding: 0.7rem 0.95rem;
  box-shadow: var(--shadow-lg);
  animation: floaty 5s ease-in-out infinite;
  color: var(--ink);
}

.float-card strong { display: block; font-size: 0.82rem; }
.float-card span { font-size: 0.72rem; color: var(--muted); }

.float-streak { top: 14%; left: -6%; }
.float-streak svg.lucide { color: var(--streak); width: 26px; height: 26px; }

.float-rank { bottom: 12%; right: -8%; animation-delay: 2.2s; }
.float-rank svg.lucide { color: var(--gold); width: 24px; height: 24px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ Why ============ */
.why { padding: 4.5rem 0; background: #fff; border-block: 1px solid var(--line); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.why p { color: var(--ink-soft); font-size: 1.05rem; }

/* ============ Sections ============ */
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.features { padding: 5.5rem 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card.featured {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(16, 185, 129, 0.08), rgba(132, 204, 22, 0.08));
  border-color: rgba(16, 185, 129, 0.3);
}

.feature-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.f-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 1rem;
}

.f-icon svg.lucide { width: 22px; height: 22px; }

.g-cyan { background: linear-gradient(135deg, var(--cyan-deep), #0891b2); }
.g-emerald { background: linear-gradient(135deg, var(--emerald-deep), #0fa05c); }
.g-lime { background: linear-gradient(135deg, var(--lime-deep), #4d7c0f); }

/* ============ Rankings & friends ============ */
.social {
  padding: 5.5rem 0;
  background: #fff;
  border-block: 1px solid var(--line);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 940px;
  margin-inline: auto;
}

.social-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 1.75rem;
}

/* ============ Languages ============ */
.languages { padding: 5.5rem 0; }

.lang-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  padding: 0;
  margin: 0 auto;
  max-width: 44rem;
}

.lang-chips li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

/* ============ CTA ============ */
.cta { padding: 3rem 0 6rem; }

.cta-inner {
  background: linear-gradient(120deg, var(--navy-900), #0d2231 55%, #113026);
  border-radius: 28px;
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(6, 182, 212, 0.32), transparent),
    radial-gradient(600px 220px at 85% 100%, rgba(132, 204, 22, 0.28), transparent);
  pointer-events: none;
}

.cta-inner > * { position: relative; }

.cta-inner p { color: rgba(255, 255, 255, 0.75); margin-bottom: 2rem; }

.badge-wrap.on-dark .badge-google { background: transparent; }

/* ============ Footer ============ */
.site-footer {
  background: #0a0f1a;
  color: #c9d2dd;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .brand-name { color: #fff; }

.footer-brand p { color: #8b95a3; margin-top: 0.75rem; font-size: 0.95rem; }

.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #c9d2dd;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #8b95a3;
}

/* ============ Legal pages ============ */
.legal-main { padding: 3.5rem 0 5rem; }

.legal-article {
  max-width: 760px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}

.legal-article h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.35em; }

.legal-article h2 {
  font-size: 1.25rem;
  margin-top: 2em;
  padding-top: 1.25em;
  border-top: 1px solid var(--line);
}

.legal-article h3 { font-size: 1.02rem; margin-top: 1.5em; }

.legal-article p, .legal-article li { color: var(--ink-soft); font-size: 0.97rem; }

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

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

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .store-badges { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-visual { margin-top: 2rem; }
  .why-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: 1fr; max-width: 460px; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { display: flex; }

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

  .float-streak { left: 0; }
  .float-rank { right: 0; }
}
