/* ============================================================
   Kiu landing — style.css
   Palette inspired by Kiu's alternate app icons: blue / violet / rose
   ============================================================ */

:root {
  --blue: #4f7cf7;
  --violet: #8b5cf6;
  --rose: #f472b6;
  --grad: linear-gradient(120deg, var(--blue), var(--violet) 55%, var(--rose));
  --ink: #15161e;
  --ink-soft: #3c3f4c;
  --muted: #666b7a;
  --bg: #fafbfe;
  --surface: #ffffff;
  --line: #e8eaf2;
  --shadow-sm: 0 1px 2px rgba(21, 22, 30, 0.05), 0 4px 16px rgba(21, 22, 30, 0.06);
  --shadow-lg: 0 8px 24px rgba(21, 22, 30, 0.08), 0 24px 64px rgba(79, 124, 247, 0.14);
  --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);
  -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(--violet);
  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(250, 251, 254, 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; }

.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);
  color: #fff !important;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 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(--violet); 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.35;
  pointer-events: none;
}

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

.hero-blob-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--rose), 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(--violet);
  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;
}

.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);
  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(139, 92, 246, 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(--violet); }

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

.phone-shot {
  width: 300px;
  height: auto;
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2.5deg);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 234, 242, 0.9);
  border-radius: 16px;
  padding: 0.7rem 0.95rem;
  box-shadow: var(--shadow-lg);
  animation: floaty 5s ease-in-out infinite;
}

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

.float-streak { top: 16%; left: -4%; }
.float-streak svg.lucide { color: #f97316; width: 26px; height: 26px; }

.float-reminder { bottom: 12%; right: -6%; animation-delay: 2.2s; }
.float-reminder svg.lucide { color: var(--violet); 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(79, 124, 247, 0.07), rgba(139, 92, 246, 0.07), rgba(244, 114, 182, 0.07));
  border-color: rgba(139, 92, 246, 0.25);
}

.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-blue { background: linear-gradient(135deg, var(--blue), #6d9bff); }
.g-violet { background: linear-gradient(135deg, var(--violet), #a78bfa); }
.g-rose { background: linear-gradient(135deg, var(--rose), #fb92c8); }

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

.compare-wrap { max-width: 640px; margin: 0 auto; }

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare th, .compare td {
  padding: 0.95rem 1.25rem;
  text-align: center;
  font-size: 0.95rem;
}

.compare th:first-child, .compare td:first-child {
  text-align: left;
  font-weight: 600;
}

.compare thead th {
  font-family: var(--font-display);
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
  background: #fbfbfe;
}

.compare tbody tr + tr td { border-top: 1px solid var(--line); }

.compare td { color: var(--ink-soft); }

.premium-col { background: rgba(139, 92, 246, 0.06); font-weight: 600; color: var(--violet) !important; }

.premium-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.premium-tag svg.lucide { color: var(--violet); }

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

/* ============ 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;
  max-width: 44rem;
  margin-inline: auto;
}

.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, #1b1d33, #2b2250 55%, #4a2545);
  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(79, 124, 247, 0.35), transparent),
    radial-gradient(600px 220px at 85% 100%, rgba(244, 114, 182, 0.3), 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: #101223;
  color: #c9ccdd;
  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: #8b8fa3; margin-top: 0.75rem; font-size: 0.95rem; }

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

.footer-links a {
  color: #c9ccdd;
  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: #8b8fa3;
}

/* ============ 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(--violet);
  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); }
}

@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-reminder { right: 0; }

  .compare th, .compare td { padding: 0.8rem 0.7rem; font-size: 0.88rem; }
}
