/* SyncMinds landing page. Colors follow the app (AppColors.kt): charcoal, cyan, the brain's coral. */
:root {
  --ink: #232323;
  --ink-soft: #484848;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --cyan: #13bbdd;
  --blue: #4b79dc;
  --coral: #f07f86;
  --amber: #ec9c1c;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(35, 35, 35, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 5vw, 4rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ececec;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; align-items: center; gap: 1.4rem; }
.nav nav a { text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.nav nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.95rem; }

.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 0.8rem; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1.3rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-btn svg { width: 26px; height: 26px; fill: currentColor; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.1rem; }
.store-btn small { font-weight: 500; font-size: 0.72rem; opacity: 0.8; }
.store-btn-soon { background: var(--bg-alt); color: var(--muted); cursor: default; }
.store-btn-soon:hover { transform: none; box-shadow: none; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(19, 187, 221, 0.12);
  color: #0b8aa4;
  font-weight: 700;
  font-size: 0.85rem;
}
h1 { margin: 0; font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.08; letter-spacing: -0.02em; }
.accent { color: var(--coral); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; margin: 1.3rem 0 0; }
.fine { color: var(--muted); font-size: 0.9rem; margin: 0; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img {
  width: min(420px, 100%);
  border-radius: 28%;
  box-shadow: 0 30px 60px rgba(240, 127, 134, 0.25);
  animation: float 6s ease-in-out infinite;
}
.bubble {
  position: absolute;
  z-index: 1;
  padding: 0.4rem 0.9rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
/* Around the icon, clear of the speech bubbles drawn in it. */
.b1 { top: -4%; left: 30%; }
.b2 { top: 40%; right: -2%; animation-delay: -1.5s; background: var(--cyan); }
.b3 { top: 44%; left: -2%; animation-delay: -3s; background: var(--blue); }
.b4 { bottom: -5%; left: 42%; animation-delay: -2s; background: var(--amber); }

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

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 5vw, 2rem);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.stats div { display: flex; flex-direction: column; padding: 0.4rem; }
.stats strong { font-size: 1.8rem; color: var(--cyan); }
.stats span { opacity: 0.85; font-size: 0.95rem; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 5vw, 4rem); max-width: 1200px; margin: 0 auto; }
.section.alt { max-width: none; background: var(--bg-alt); }
.section.alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section h2, .final-cta h2 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 3.5vw, 2.5rem); text-align: center; letter-spacing: -0.01em; }
.section-lead { text-align: center; color: var(--muted); margin: 0 auto 2.5rem; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.mode {
  padding: 1.4rem;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mode:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mode img { width: 190px; height: 95px; object-fit: contain; }
.mode p { margin: 0.6rem 0 0; color: var(--ink-soft); }

.steps { list-style: none; margin: 2.5rem auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { padding: 1.8rem 1.5rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
}
.steps h3, .feature h3 { margin: 0.9rem 0 0.3rem; font-size: 1.15rem; }
.steps p, .feature p { margin: 0; color: var(--ink-soft); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2rem; }
.feature { padding: 1.5rem; border-left: 4px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-alt); }
.feature h3 { margin-top: 0; }

.final-cta { padding: clamp(3rem, 7vw, 5rem) 1rem; text-align: center; background: linear-gradient(135deg, #fde3e5, #dff6fb); }
.final-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1rem; }

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem clamp(1rem, 5vw, 4rem);
  background: var(--ink);
  color: #cfcfcf;
  font-size: 0.92rem;
}
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .social a { display: inline-flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.footer .social svg { width: 1rem; height: 1rem; flex: none; }
.footer .languages { flex-basis: 100%; gap: 0.9rem; font-size: 0.85rem; }
.footer .languages a[aria-current] { font-weight: 700; text-decoration: underline; }

/* Header language switcher (<details>, no script) */
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink-soft); padding: 0.35rem 0.6rem; border-radius: 999px;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); background: var(--bg-alt); }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 0.4rem); z-index: 20;
  display: flex; flex-direction: column; min-width: 10rem; padding: 0.4rem;
  background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.nav .lang-list a { padding: 0.45rem 0.7rem; border-radius: 8px; color: var(--ink); }
.nav .lang-list a:hover { background: var(--bg-alt); }
.nav .lang-list a[aria-current] { color: var(--cyan); }

/* Learn a language: cards linking to /learn/<slug>/ */
.learn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.learn-card {
  display: flex; flex-direction: column; gap: 0.2rem; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow); text-decoration: none; transition: transform 0.15s ease;
}
.learn-card:hover { transform: translateY(-3px); }
.learn-card strong { font-size: 1.2rem; }
.learn-card span { color: var(--muted); font-size: 0.92rem; }

/* FAQ (native <details>, no script) */
.faq { max-width: 820px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item { border-radius: 14px; background: var(--bg-alt); padding: 0 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; position: relative; padding-inline-end: 2rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; inset-inline-end: 0; top: 0.85rem; font-size: 1.3rem; color: var(--cyan); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.section.alt .faq-item { background: #fff; }

/* Learn and word list pages */
.crumbs { max-width: 1200px; margin: 1.2rem auto 0; padding: 0 clamp(1rem, 5vw, 4rem); font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--ink-soft); }
.learn-hero { grid-template-columns: 1fr; padding-top: 2rem; }
.page-title { font-size: clamp(2rem, 4.5vw, 3rem); text-align: center; margin-bottom: 1rem; }
.prose { max-width: 760px; margin: 1rem auto 0; color: var(--ink-soft); font-size: 1.05rem; }
.prose.center { text-align: center; }
.notes { max-width: 760px; margin: 1.5rem auto 0; padding-inline-start: 1.2rem; color: var(--ink-soft); }
.notes li { margin-bottom: 0.6rem; }
.level-table { margin: 0 auto; border-collapse: collapse; min-width: min(520px, 100%); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.level-table th, .level-table td { padding: 0.75rem 1.2rem; text-align: start; border-bottom: 1px solid var(--bg-alt); }
.level-table thead th { background: var(--ink); color: #fff; }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.example-card { padding: 1.3rem; border-radius: var(--radius); background: var(--bg-alt); }
.example-card h3 { margin: 0 0 0.8rem; font-size: 1.05rem; display: flex; align-items: center; gap: 0.5rem; }
.example-card ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
.example-card li { display: flex; flex-direction: column; line-height: 1.3; }
.example-card li span { font-weight: 700; }
.example-card li small { color: var(--muted); }
.example-card .more { display: inline-block; margin-top: 0.9rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.level-badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 6px; color: #fff; font-size: 0.85rem; background: var(--ink-soft); }
.level-a1 { background: #2e9e6b; }
.level-a2 { background: #4b8fd8; }
.level-b1 { background: #d9a31c; }
.level-b2 { background: #c9733a; }
.level-c1 { background: #d24b4b; }
.level-c2 { background: #7c4dbe; }
.level-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.5rem; }
.level-links a { padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--bg-alt); text-decoration: none; font-weight: 600; }
.level-links a[aria-current] { background: var(--cyan); color: #fff; }
.table-wrap { overflow-x: auto; margin-top: 1.5rem; }
.word-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.word-table th, .word-table td { padding: 0.55rem 1rem; text-align: start; border-bottom: 1px solid var(--bg-alt); }
.word-table thead th { position: sticky; top: 0; background: var(--ink); color: #fff; }
.word-table td:first-child { font-weight: 700; }
.word-table td:not(:first-child) { color: var(--ink-soft); }

/* Right-to-left pages (Urdu) */
[dir="rtl"] .feature { border-left: 0; border-right: 4px solid var(--cyan); border-radius: var(--radius) 0 0 var(--radius); }

/* Small screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { width: min(280px, 80%); }
  .bubble { display: none; }
  .modes, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); margin: 0 1rem; }
  .learn-grid { grid-template-columns: repeat(2, 1fr); }
  .examples { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nav nav > a:not(.btn) { display: none; }
  .modes, .steps, .features, .examples { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img, .bubble { animation: none; }
  .btn, .store-btn, .mode { transition: none; }
}
