/* =========================================================
   Tikora — Website Design System
   Mirrors the app's design tokens (colors, Nunito font,
   signature 3D pill buttons).
   ========================================================= */

:root {
  /* Primary */
  --orange: #fda129;
  --orange-dark: #f17e05;
  --purple: #a362f6;
  --purple-dark: #8a42e5;

  /* Backgrounds */
  --bg: #f2eafa;
  --bg-end: #ffffff;
  --card: #ffffff;
  --card-alt: #f8f5fc;

  /* Text */
  --text: #2d2d2d;
  --text-secondary: #6b6b6b;
  --muted: #9b9b9b;

  /* UI */
  --border: #e8e0f0;
  --divider: #f0e8f8;
  --success: #4ade80;

  /* Accent unit colors */
  --u-green: #69e30b;
  --u-cyan: #00e1ff;
  --u-magenta: #d80de3;

  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 10px 30px rgba(163, 98, 246, 0.10);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a { color: var(--purple-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin: 0 0 0.4em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--text-secondary); font-weight: 600; }
.lead { font-size: 1.25rem; color: var(--text-secondary); }
.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--purple-dark);
  background: #efe4ff;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Signature 3D pill button ---------- */
.btn {
  --btn-bg: var(--purple);
  --btn-shadow: var(--purple-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: var(--btn-bg);
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--btn-shadow);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.02); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-shadow); }
.btn--primary { --btn-bg: var(--orange); --btn-shadow: var(--orange-dark); }
.btn--secondary { --btn-bg: var(--purple); --btn-shadow: var(--purple-dark); }
.btn--ghost {
  background: #fff; color: var(--purple-dark);
  box-shadow: 0 5px 0 var(--border); border: 2px solid var(--border);
}
.btn--ghost:active { box-shadow: 0 1px 0 var(--border); }

/* ---------- Store badges ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1a1025;
  color: #fff;
  padding: 12px 22px;
  border-radius: 16px;
  box-shadow: 0 6px 0 #0f0a1a;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
  min-width: 200px;
}
.store-badge:hover { text-decoration: none; }
.store-badge:active { transform: translateY(4px); box-shadow: 0 2px 0 #0f0a1a; }
.store-badge svg { width: 30px; height: 30px; flex-shrink: 0; fill: #fff; }
.store-badge > span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.store-badge .sb-top { font-size: 0.72rem; font-weight: 600; opacity: 0.85; line-height: 1; }
.store-badge .sb-main { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.store-badge[aria-disabled="true"] { opacity: 0.75; cursor: default; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 234, 250, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--divider);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.35rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-secondary); font-weight: 700; }
.nav-links a:hover { color: var(--purple-dark); text-decoration: none; }
.nav-cta { padding: 10px 22px; font-size: 1rem; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* Text brand (legal/support pages) — Tik purple + ora orange */
.brand-text { gap: 0; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 2.1rem; letter-spacing: -0.02em; }
.brand-text .grad-purple { color: var(--purple); }
.brand-text .grad-orange { color: var(--orange); }

/* Compact store badges inside the header */
.header-badges { gap: 10px; flex-wrap: nowrap; }
.header-badges .store-badge {
  min-width: 0;
  padding: 7px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 0 #0f0a1a;
  gap: 9px;
}
.header-badges .store-badge:active { transform: translateY(3px); box-shadow: 0 1px 0 #0f0a1a; }
.header-badges .store-badge svg { width: 20px; height: 20px; }
.header-badges .store-badge .sb-top { font-size: 0.6rem; }
.header-badges .store-badge .sb-main { font-size: 0.92rem; }

@media (max-width: 620px) {
  .header-badges .store-badge .sb-top { display: none; }
  .header-badges .store-badge { padding: 8px 12px; }
  .header-badges .store-badge svg { width: 18px; height: 18px; }
  .brand-text { font-size: 1.45rem; }
}
@media (max-width: 400px) {
  .header-badges { gap: 7px; }
  .header-badges .store-badge .sb-main { font-size: 0.82rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-end) 100%);
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-content h1 span { color: var(--purple-dark); }
.hero-content .lead { max-width: 520px; }
.hero-actions { margin-top: 28px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .blob {
  position: absolute; inset: 0; margin: auto;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #efe4ff 0%, rgba(242,234,250,0) 70%);
  z-index: 0;
}
.hero-art img { position: relative; z-index: 1; max-width: 360px; filter: drop-shadow(0 20px 30px rgba(138,66,229,0.18)); }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); font-weight: 700; }

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head p { font-size: 1.15rem; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.feature-icon {
  width: 60px; height: 60px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { text-align: center; padding: 0 12px; }
.step .num {
  counter-increment: step;
  width: 56px; height: 56px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple); color: #fff; font-weight: 800; font-size: 1.4rem;
  border-radius: 999px; box-shadow: 0 5px 0 var(--purple-dark);
}
.step .num::before { content: counter(step); }
.steps .step:nth-child(2) .num { background: var(--orange); box-shadow: 0 5px 0 var(--orange-dark); }
.steps .step:nth-child(3) .num { background: var(--u-green); box-shadow: 0 5px 0 #52b309; }

/* ---------- Languages ---------- */
.langs { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.lang-chip {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border);
  padding: 12px 20px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 4px 0 var(--border);
}
.lang-chip img { width: 26px; height: 20px; border-radius: 4px; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 24px 20px 8px;
  margin: 0 auto;
}
.cta-band h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.cta-band h2 .grad-purple { color: var(--purple); }
.cta-band h2 .grad-orange { color: var(--orange); }
.cta-band p { color: var(--text-secondary); }
.cta-band .store-badges { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: #1a1025; color: #cfc3e0; padding: 56px 0 32px; margin-top: 20px; }
.site-footer a { color: #cfc3e0; font-weight: 600; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3rem; color: #fff; margin-bottom: 14px; }
.footer-brand img { width: 38px; height: 38px; border-radius: 10px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid #2d1d42; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.9rem; color: #8a7ba0;
}

/* ---------- Legal / content pages ---------- */
.page-hero { padding: 56px 0 24px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-end) 100%); }
.page-hero h1 { margin-bottom: 8px; }
.page-hero .updated { color: var(--muted); font-weight: 700; }
.legal { padding: 24px 0 72px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 40px; }
.legal h3 { font-size: 1.15rem; margin-top: 28px; }
.legal p, .legal li { color: var(--text-secondary); font-weight: 600; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { font-weight: 700; }
.toc {
  background: var(--card-alt); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px 24px; margin: 24px 0 8px;
}
.toc ul { margin: 8px 0 0; }

/* =========================================================
   Centered / animated hero (v2 — simpler & bolder)
   ========================================================= */
.hero--centered {
  position: relative;
  padding: 72px 0 104px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f4ecfc 0%, #ffffff 100%);
}

/* Real word flashcards from the app — image + word (shows how you learn) */
.word-card {
  position: absolute;
  width: 152px;
  margin: 0; /* figure has a 40px default inline margin */
  background: #fff;
  border-radius: 20px;
  padding: 10px 10px 4px;
  box-shadow: 0 18px 40px rgba(45, 45, 45, 0.14);
  z-index: 1;
}
.word-card img {
  width: 100%; height: 128px;
  object-fit: cover;
  border-radius: 13px;
  display: block;
}
.word-card figcaption {
  text-align: center;
  font-weight: 800;
  color: var(--text);
  padding: 9px 4px 6px;
  font-size: 1.05rem;
  text-transform: capitalize;
}
/* A small colored accent bar so brand colors live on the cards */
.word-card figcaption::after {
  content: "";
  display: block;
  width: 26px; height: 4px;
  border-radius: 999px;
  margin: 7px auto 0;
  background: var(--purple);
}
.word-card.accent-o figcaption::after { background: var(--orange); }

/* Left column */
.word-card.wl1 { top: 4%;  left: 3%; transform: rotate(-3deg); }
.word-card.wl2 { top: 37%; left: 6%; transform: rotate(2deg); }
.word-card.wl3 { top: 69%; left: 3%; transform: rotate(-2deg); }
/* Right column */
.word-card.wr1 { top: 4%;  right: 3%; transform: rotate(3deg); }
.word-card.wr2 { top: 37%; right: 6%; transform: rotate(-2deg); }
.word-card.wr3 { top: 69%; right: 3%; transform: rotate(2deg); }

@media (max-width: 1180px) {
  .word-card { width: 122px; }
  .word-card img { height: 100px; }
  .word-card figcaption { font-size: 0.95rem; }
}
.hero--centered .container { position: relative; z-index: 2; display: block; }

.hero-mascot {
  width: clamp(210px, 52vw, 270px);
  margin: 0 auto 0;
  filter: drop-shadow(0 24px 34px rgba(138, 66, 229, 0.22));
}
.brand-hero {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 6px 0 10px;
}
.brand-hero .grad-purple { color: var(--purple); }
.brand-hero .grad-orange { color: var(--orange); }
.hero--centered h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.02em;
  margin: 12px auto 18px;
  max-width: 14ch;
}
.grad-purple { color: var(--purple); }
.grad-orange { color: var(--orange); }
.hero--centered .lead {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero--centered .store-badges { justify-content: center; }
.hero--centered .hero-note { text-align: center; max-width: 420px; margin-inline: auto; }

/* Floating word bubbles in the background */
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--purple-dark);
  box-shadow: 0 8px 22px rgba(163, 98, 246, 0.12);
  opacity: 0.9;
  animation: floatY 6s ease-in-out infinite;
}
.float-chip.orange { color: var(--orange-dark); }
.float-chip.c1 { top: 12%; left: 6%; animation-delay: 0s; }
.float-chip.c2 { top: 22%; right: 8%; animation-delay: 0.8s; }
.float-chip.c3 { top: 52%; left: 4%; animation-delay: 1.6s; }
.float-chip.c4 { top: 62%; right: 6%; animation-delay: 0.4s; }
.float-chip.c5 { top: 38%; left: 12%; animation-delay: 2.1s; }
.float-chip.c6 { top: 46%; right: 13%; animation-delay: 1.2s; }

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

@media (max-width: 700px) {
  .float-chip { font-size: 0.85rem; padding: 8px 14px; }
  .float-chip.c5, .float-chip.c6 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mascot, .float-chip { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content .lead { margin-left: auto; margin-right: auto; }
  .hero-actions .store-badges { justify-content: center; }
  .hero-art { order: -1; }
  .features, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--bg-end);
    padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--divider);
  }
  .menu-toggle { display: block; }
}

/* =========================================================
   Hero word cards on small screens
   The floating layout has no side room on phones, so the cards
   become a tidy grid below the hero copy instead of being hidden.
   ========================================================= */
@media (max-width: 860px) {
  .hero--centered { display: flex; flex-direction: column; }
  .hero--centered .container { order: 1; }
  .hero-bg {
    order: 2;
    position: static;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 12px;
    width: 100%;
    max-width: 460px;
    margin: 40px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .hero-bg .word-card {
    position: static;
    width: auto;
    transform: none;
    padding: 8px 8px 2px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(45, 45, 45, 0.12);
  }
  .hero-bg .word-card img { height: 82px; border-radius: 11px; }
  .hero-bg .word-card figcaption { font-size: 0.85rem; padding: 7px 2px 4px; }
  .hero-bg .word-card figcaption::after { width: 20px; height: 3px; margin-top: 5px; }
}
@media (min-width: 621px) and (max-width: 860px) {
  .hero-bg { max-width: 600px; }
  .hero-bg .word-card img { height: 118px; }
  .hero-bg .word-card figcaption { font-size: 1rem; }
}
@media (max-width: 420px) {
  .hero-bg { gap: 9px; }
  .hero-bg .word-card img { height: 68px; }
  .hero-bg .word-card figcaption { font-size: 0.78rem; }
}

/* =========================================================
   Cookie consent bar
   ========================================================= */
.cookie-bar {
  position: fixed;
  z-index: 999;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 130%);
  width: calc(100% - 32px);
  max-width: 820px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(45, 45, 45, 0.18);
  transition: transform 0.24s ease, opacity 0.24s ease;
  opacity: 0;
}
.cookie-bar.is-visible { transform: translate(-50%, 0); opacity: 1; }
.cookie-bar__text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
}
.cookie-bar__text a { color: var(--purple); font-weight: 800; }
.cookie-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 11px 22px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.cookie-btn--accept {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 0 var(--purple-dark);
}
.cookie-btn--accept:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--purple-dark); }
.cookie-btn--ghost {
  background: #fff;
  color: var(--text-secondary);
  box-shadow: 0 4px 0 var(--border);
  border: 1px solid var(--border);
}
.cookie-btn--ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--border); }
.cookie-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

@media (max-width: 720px) {
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    bottom: 12px;
    padding: 16px 18px;
    border-radius: 18px;
  }
  .cookie-bar__text { font-size: 0.9rem; }
  .cookie-bar__actions { justify-content: stretch; }
  .cookie-btn { flex: 1; padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-bar { transition: none; }
}
