/* ==========================================================================
   Lookuru — lookuru.com
   Plain CSS, no build step. Mobile-first.
   ========================================================================== */

:root {
  --bg: #000000;
  --card: #0C0D0F;
  --card-2: #111111;
  --row: #1A1A1A;
  --border: #1B1B1B;
  --border-2: #26272A;
  --text: #FFFFFF;
  --muted: #8C8C8C;
  --dim: #5A5B5E;

  --green: #1FC163;
  --red: #EF4C28;
  --purple: #B58CFF;

  --grad: linear-gradient(100deg, #EF4C28 0%, #9104FF 52%, #1729FF 100%);
  --grad-tile: linear-gradient(145deg, #E7453A 0%, #AB18C2 52%, #2026FE 100%);

  --radius: 12px;
  --radius-sm: 11px;
  --wrap: 1160px;
  --pad: clamp(20px, 5vw, 40px);
  --header-h: 68px;

  --font: "Poppins", "Noto Sans Sinhala", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-si: "Noto Sans Sinhala", "Poppins", "Iskoola Pota", system-ui, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="si"] body { font-family: var(--font-si); line-height: 1.8; }
[lang="si"] { font-family: var(--font-si); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

/* ---------- Language switching ----------
   Every translatable piece exists twice: data-l="en" and data-l="si".
   The <html lang> attribute decides which one is visible. */
html:not([lang="si"]) [data-l="si"],
html[lang="si"] [data-l="en"] { display: none !important; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: #000; padding: 10px 16px; border-radius: 999px;
  font-weight: 500; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 10vw, 120px); }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
html[lang="si"] .section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); line-height: 1.35; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: .98rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:active { transform: scale(.98); }
.btn--grad { background: var(--grad); color: #fff; box-shadow: 0 8px 30px -10px rgba(145, 4, 255, .7); }
.btn--grad:hover { box-shadow: 0 10px 38px -8px rgba(145, 4, 255, .85); }
.btn--ghost { background: var(--card-2); border-color: var(--border-2); color: var(--text); }
.btn--ghost:hover { background: var(--row); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }

/* Google Play button */
.play-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 8px 24px 8px 18px; border-radius: 999px;
  background: var(--grad); color: #fff; text-decoration: none;
  box-shadow: 0 10px 40px -12px rgba(145, 4, 255, .8);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.play-btn:hover { box-shadow: 0 14px 44px -10px rgba(145, 4, 255, .95); }
.play-btn:active { transform: scale(.98); }
.play-btn svg { width: 26px; height: 26px; flex: none; }
.play-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.play-btn small { font-size: .72rem; opacity: .9; font-weight: 400; }
.play-btn strong { font-size: 1.08rem; font-weight: 600; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 500; line-height: 1;
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid currentColor;
}
.badge--free { color: var(--green); background: rgba(31, 193, 99, .08); }
.badge--beta { color: #FF7A5C; background: rgba(239, 76, 40, .1); border-color: rgba(239, 76, 40, .7); }
.badge--soon { color: var(--purple); background: rgba(181, 140, 255, .08); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.brand span { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: var(--card-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--row); }

.lang-toggle {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--card-2); border: 1px solid var(--border-2); border-radius: 999px;
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  min-width: 44px; height: 32px; padding: 0 10px; border-radius: 999px;
  font-size: .84rem; font-weight: 500; color: var(--muted);
  transition: background-color .2s, color .2s;
}
.lang-toggle button[lang="si"] { font-family: var(--font-si); }
.lang-toggle button[aria-pressed="true"] { background: var(--text); color: #000; }

.header-cta { display: none; }

.menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; background: var(--card-2); border: 1px solid var(--border-2); cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }

.mobile-menu {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: rgba(0, 0, 0, .96);
  padding: 24px var(--pad) 40px;
  overflow-y: auto;
}
.menu-open .mobile-menu { display: block; animation: menuIn .25s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu ul { list-style: none; display: grid; gap: 4px; margin-bottom: 28px; }
.mobile-menu a:not(.play-btn) {
  display: block; padding: 14px 16px; border-radius: var(--radius);
  text-decoration: none; font-size: 1.15rem; font-weight: 500; background: var(--card);
  border: 1px solid var(--border);
}
.mobile-menu a[aria-current="page"] { border-color: var(--border-2); background: var(--row); }
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(120px, 14vw, 170px);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.4rem, 7.2vw, 4.4rem);
  line-height: 1.04; letter-spacing: -0.035em;
  max-width: 11ch;
}
html[lang="si"] .hero h1 { font-size: clamp(2rem, 5.6vw, 3.3rem); line-height: 1.3; letter-spacing: 0; max-width: 14ch; }
.hero-sub { margin-top: 22px; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.15rem); max-width: 46ch; }
.hero-sub b { color: var(--text); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 34px; }

.qr-card {
  display: none; align-items: center; gap: 14px;
  padding: 10px 16px 10px 10px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
}
.qr-card .qr { width: 76px; height: 76px; padding: 6px; background: #fff; border-radius: 8px; }
.qr-card .qr svg { width: 100%; height: 100%; }
.qr-card p { font-size: .82rem; line-height: 1.35; color: var(--muted); max-width: 12ch; }
.qr-card p strong { display: block; color: var(--text); font-weight: 500; font-size: .9rem; }
@media (min-width: 700px) { .qr-card { display: inline-flex; } }

.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; list-style: none; color: var(--muted); font-size: .9rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* Stage: phone + glow + bot */
.hero-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-glow {
  position: absolute; inset: 50% auto auto 50%; width: 560px; height: 560px;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 0;
  background:
    radial-gradient(closest-side, rgba(145, 4, 255, .45), transparent 70%),
    radial-gradient(closest-side at 30% 30%, rgba(239, 76, 40, .35), transparent 70%),
    radial-gradient(closest-side at 70% 75%, rgba(23, 41, 255, .4), transparent 70%);
  filter: blur(40px);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { from { transform: translate(-50%, -50%) scale(.92) rotate(0); } to { transform: translate(-50%, -50%) scale(1.06) rotate(18deg); } }

.hero-bot {
  position: absolute; z-index: 3; width: clamp(110px, 16vw, 168px);
  right: max(-8px, calc(50% - 250px)); top: 6px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6));
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .hero-stage { min-height: 640px; }
}

/* The wave (water) at the bottom of the hero */
.hero-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none; z-index: 1; overflow: hidden; }
.hero-wave svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; max-width: none; }
.hero-wave .w1 { animation: wave 16s linear infinite; opacity: .55; }
.hero-wave .w2 { animation: wave 24s linear infinite reverse; opacity: .35; bottom: -8px; }
.hero-wave .w3 { animation: wave 32s linear infinite; opacity: 1; bottom: -18px; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Phone mockup + keyboard
   ========================================================================== */
.phone {
  position: relative; z-index: 2;
  width: min(312px, 86vw); aspect-ratio: 9 / 19.2;
  border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, #2a2b2f, #0d0e10 40%, #1b1c1f);
  box-shadow: 0 0 0 1px #2d2e32, 0 40px 80px -20px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 35px; overflow: hidden;
  background: #050506; display: flex; flex-direction: column;
}
.phone-notch { position: absolute; top: 10px; left: 50%; width: 86px; height: 24px; transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 5; }
.phone-status { display: flex; justify-content: space-between; padding: 12px 24px 0; font-size: 11px; font-weight: 500; color: #ddd; height: 36px; }

.chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 16px 10px; border-bottom: 1px solid #141416; }
.chat-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #1FC163, #1729FF); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.chat-name { font-size: 13px; font-weight: 500; line-height: 1.1; }
.chat-name small { display: block; font-size: 10px; color: var(--green); font-weight: 400; }

.chat-body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 0; }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 16px; font-size: 13px; line-height: 1.4; }
.bubble--in { background: #1A1A1A; border-bottom-left-radius: 5px; align-self: flex-start; }

.chat-input {
  display: flex; align-items: center; gap: 8px; margin: 0 10px 8px;
  padding: 8px 8px 8px 14px; background: #141416; border: 1px solid #202024; border-radius: 22px;
  min-height: 42px;
}
.chat-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; font-family: var(--font-si); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-text .composing { text-decoration: underline; text-decoration-color: var(--purple); text-underline-offset: 3px; }
.chat-text .caret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--purple); vertical-align: -2px; margin-left: 1px; animation: caret 1s steps(1) infinite; }
.chat-text.is-flipping { animation: flip .5s var(--ease); }
@keyframes caret { 50% { opacity: 0; } }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); opacity: .2; } 100% { transform: rotateX(0); } }
.chat-send { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; flex: none; }
.chat-send svg { width: 13px; height: 13px; }

/* Keyboard */
.kb { background: #0C0D0F; border-top: 1px solid #16171a; padding: 6px 4px 10px; font-family: var(--font); }
.kb-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 6px; }
.kb-logo { width: 26px; height: 26px; flex: none; }
.kb-seg { display: flex; background: #1A1A1A; border-radius: 99px; padding: 2px; margin-right: auto; }
.kb-seg span { font-size: 10.5px; font-weight: 500; padding: 4px 9px; border-radius: 99px; color: var(--muted); line-height: 1.2; transition: background-color .25s, color .25s; }
.kb-seg span.on { background: #fff; color: #000; }
.kb-seg span[lang="si"] { font-family: var(--font-si); }
.kb-ic { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #1A1A1A; font-size: 14px; flex: none; }
.kb-ic svg { width: 14px; height: 14px; }
.kb-bot { position: relative; }
.kb-bot.is-tapped { animation: tap .6s var(--ease); }
.kb-bot.is-tapped::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--purple); animation: ring .6s var(--ease) forwards; }
@keyframes tap { 30% { transform: scale(.85); } 60% { transform: scale(1.08); } }
@keyframes ring { from { opacity: 1; transform: scale(.8); } to { opacity: 0; transform: scale(1.5); } }

.kb-sug { display: grid; grid-template-columns: 1fr 1.2fr 1fr; height: 30px; margin: 0 2px 6px; border-radius: 8px; background: #111111; overflow: hidden; }
.kb-sug span { display: grid; place-items: center; font-size: 12px; color: var(--muted); font-family: var(--font-si); white-space: nowrap; overflow: hidden; border-right: 1px solid #1B1B1B; }
.kb-sug span:last-child { border-right: 0; }
.kb-sug span.best { color: #fff; font-weight: 500; }
.kb-sug span.roman { font-family: var(--font); font-size: 11px; color: var(--dim); }

.kb-row { display: flex; justify-content: center; gap: 4px; margin-bottom: 6px; }
.kb-key {
  flex: 1; max-width: 26px; height: 36px; border-radius: 6px; background: #1A1A1A;
  display: grid; place-items: center; font-size: 13px; color: #eee;
  transition: background-color .12s, transform .12s;
}
.kb-key.wide { max-width: 38px; flex: 1.5; font-size: 11px; color: var(--muted); }
.kb-key.space { max-width: none; flex: 5; font-size: 10.5px; color: var(--dim); }
.kb-key.sym { max-width: 42px; flex: 1.6; font-size: 10.5px; color: var(--muted); }
.kb-key.is-down { background: #3a3b40; transform: translateY(1px); }
.kb-row--mid { padding-inline: 12px; }

/* ==========================================================================
   Cards, grids
   ========================================================================== */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}
.why-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.why-card img, .why-card .tile { width: 72px; height: 72px; }
.why-card h3 { font-size: 1.25rem; }
.why-card p { color: var(--muted); }
.why-demo {
  margin-top: auto; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--row);
  display: flex; align-items: center; gap: 10px; font-size: .95rem; flex-wrap: wrap;
}
.why-demo .from { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(239, 76, 40, .7); }
.why-demo .from.plain { text-decoration: none; font-family: var(--font); }
.why-demo .arrow { color: var(--dim); }
.why-demo .to { font-weight: 500; }

/* Gradient tile stand-in for features without a 3D icon */
.tile {
  display: grid; place-items: center; border-radius: 18px;
  background: var(--grad-tile); font-size: 30px; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 24px -10px rgba(145, 4, 255, .6);
  font-family: var(--font-si); font-weight: 600; color: #fff;
}
.tile--sm { width: 56px; height: 56px; font-size: 24px; border-radius: 15px; }

.feature-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1120px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.f-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.f-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.f-card img, .f-card .tile { width: 56px; height: 56px; }
.f-card h3 { font-size: 1.05rem; }
.f-card p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.feature-more { margin-top: 28px; }

/* Coming soon strip */
.soon {
  background: linear-gradient(180deg, var(--card), #070708);
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 4vw, 44px); overflow: hidden; position: relative;
}
.soon-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 26px; }
.soon-top h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.soon-note { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; max-width: 40ch; }
.soon-note svg { width: 18px; height: 18px; flex: none; color: var(--purple); }
.soon-list {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: thin; scrollbar-color: #2a2a2e transparent;
}
.soon-item {
  scroll-snap-align: start; background: #0a0a0b; border: 1px dashed #2a2a2e; border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.soon-item h3 { font-size: 1rem; }
.soon-item p { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.soon-item .badge { align-self: flex-start; }

/* Latest update */
.latest { display: grid; gap: 24px; align-items: center; }
@media (min-width: 880px) { .latest { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
.update-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); }
.update-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.update-ver { font-size: 1.5rem; font-weight: 600; }
.update-date { color: var(--muted); font-size: .9rem; }
.update-date.is-placeholder { color: #FFB199; border: 1px dashed rgba(239, 76, 40, .6); padding: 2px 8px; border-radius: 6px; }
.update-title { font-size: 1.05rem; font-weight: 500; margin-bottom: 14px; }
.update-list { list-style: none; display: grid; gap: 8px; }
.update-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: .94rem; }
.update-list li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.update-card .btn { margin-top: 22px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 500; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details[open] { border-color: var(--border-2); }
.faq .faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq .faq-a p + p { margin-top: 10px; }
.faq .faq-a a { color: var(--text); }

/* About */
.about { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .about { grid-template-columns: auto 1fr auto; gap: 32px; } }
.about-mark { width: 84px; height: 84px; border-radius: 22px; background: var(--grad-tile); display: grid; place-items: center; font-size: 1.6rem; font-weight: 600; }
.about h2 { font-size: 1.35rem; }
.about p { color: var(--muted); margin-top: 6px; }
.about-roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; list-style: none; }
.about-roles li { font-size: .8rem; padding: 5px 12px; border-radius: 999px; background: var(--row); color: #d6d6d6; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Final CTA */
.cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: calc(var(--radius) + 8px); padding: clamp(40px, 7vw, 80px) var(--pad);
  background: radial-gradient(120% 140% at 50% 0%, rgba(145, 4, 255, .35), transparent 60%), var(--card);
  border: 1px solid var(--border);
}
.cta h2 { font-size: clamp(1.8rem, 4.6vw, 3rem); letter-spacing: -0.02em; max-width: 18ch; margin-inline: auto; }
html[lang="si"] .cta h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 1.35; }
.cta p { color: var(--muted); margin: 16px auto 30px; max-width: 46ch; }
.cta img { width: 96px; margin: 0 auto 18px; animation: float 5.5s ease-in-out infinite; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.03em; max-width: 16ch; }
html[lang="si"] .page-hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.3; letter-spacing: 0; }
.page-hero p { color: var(--muted); margin-top: 18px; font-size: 1.08rem; max-width: 56ch; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; top: -120px; right: -120px; width: 520px; height: 420px;
  background: radial-gradient(closest-side, rgba(145, 4, 255, .28), transparent 70%); pointer-events: none;
}

/* Features page */
.tier-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; color: var(--muted); font-size: .92rem; }
.tier-legend span { display: inline-flex; align-items: center; gap: 10px; }
.f-group + .f-group { margin-top: clamp(56px, 8vw, 88px); }
.f-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.f-group-head h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.f-group-head p { color: var(--muted); }
.f-detail-list { display: grid; gap: 12px; }
@media (min-width: 880px) { .f-detail-list { grid-template-columns: repeat(2, 1fr); } }
.f-detail { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 3vw, 28px); display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; align-content: start; }
.f-detail > img, .f-detail > .tile { width: 56px; height: 56px; grid-row: span 3; }
.f-detail h3 { font-size: 1.15rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.f-detail p { color: var(--muted); font-size: .95rem; }
.f-detail ul { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.f-detail li { font-size: .9rem; background: var(--row); border-radius: 9px; padding: 9px 12px; color: #d9d9d9; }
.f-detail li b { font-weight: 500; color: #fff; }
.f-detail .note { margin-top: 10px; font-size: .86rem; color: #cfcfcf; border-left: 2px solid var(--purple); padding-left: 12px; }
.f-detail.wide { grid-column: 1 / -1; }
kbd, .kbd {
  font-family: var(--font); font-size: .82em; padding: 1px 7px; border-radius: 6px;
  background: #222326; border: 1px solid #2d2e32; color: #fff; white-space: nowrap;
}
.si { font-family: var(--font-si); }

/* Updates timeline */
.timeline { position: relative; list-style: none; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, #EF4C28, #9104FF 60%, rgba(23, 41, 255, .15)); border-radius: 2px; }
.tl-item { position: relative; padding-left: 52px; }
.tl-item + .tl-item { margin-top: 28px; }
.tl-dot { position: absolute; left: 5px; top: 22px; width: 22px; height: 22px; border-radius: 50%; background: #000; border: 2px solid #9104FF; display: grid; place-items: center; }
.tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.tl-item--next .tl-dot { border-style: dashed; border-color: var(--purple); }
.tl-item--next .tl-dot::after { background: var(--purple); opacity: .5; }
.tl-item--next .update-card { border-style: dashed; border-color: #2a2a2e; background: #070708; }
.tl-next-list { list-style: none; display: grid; gap: 10px; }
@media (min-width: 640px) { .tl-next-list { grid-template-columns: repeat(2, 1fr); } }
.tl-next-list li { background: var(--card-2); border-radius: 10px; padding: 12px 14px; }
.tl-next-list b { display: block; font-weight: 500; font-size: .95rem; }
.tl-next-list span { color: var(--muted); font-size: .86rem; }

/* Legal pages (privacy / terms) */
.legal { display: grid; gap: 32px; align-items: start; }
@media (min-width: 980px) { .legal { grid-template-columns: 260px 1fr; gap: 48px; } }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
@media (min-width: 980px) { .toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; } }
.toc h2 { font-size: .95rem; margin-bottom: 12px; color: var(--muted); font-weight: 500; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 8px; color: #d0d0d0; text-decoration: none; font-size: .9rem; line-height: 1.4; }
.toc a::before { content: counter(toc); color: var(--dim); font-size: .8rem; min-width: 1.2em; padding-top: 1px; }
.toc a:hover { background: var(--row); color: #fff; }

.legal-meta { display: grid; gap: 10px; margin-bottom: 20px; }
@media (min-width: 640px) { .legal-meta { grid-template-columns: repeat(2, 1fr); } }
.legal-meta div { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.legal-meta dt { color: var(--muted); font-size: .8rem; }
.legal-meta dd { margin: 2px 0 0; font-weight: 500; font-size: .95rem; word-break: break-word; }

.summary-card { background: linear-gradient(135deg, rgba(31, 193, 99, .08), rgba(23, 41, 255, .06)); border: 1px solid rgba(31, 193, 99, .3); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); }
.summary-card h2 { font-size: 1.3rem; margin-bottom: 14px; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.legal-sections { display: grid; gap: 14px; margin-top: 14px; }
.legal-sec { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); }
.legal-sec h2 { font-size: 1.2rem; margin-bottom: 12px; display: flex; gap: 12px; align-items: baseline; }
.legal-sec h2 .n { color: var(--dim); font-size: .95rem; font-weight: 500; }
.legal-sec p, .legal-sec li { color: #c9c9c9; }
.legal-sec p + p, .legal-sec p + ul, .legal-sec ul + p { margin-top: 12px; }
.legal-sec ul { list-style: none; display: grid; gap: 8px; }
.legal-sec ul li { position: relative; padding-left: 20px; }
.legal-sec ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }
.legal-sec strong { color: #fff; font-weight: 500; }
.legal-sec a { color: #fff; text-underline-offset: 3px; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .92rem; }
.table-scroll { overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-table th { color: var(--muted); font-weight: 500; font-size: .82rem; background: var(--card-2); }
.legal-table td:first-child { color: #fff; font-weight: 500; min-width: 140px; }
.legal-table td { color: #c9c9c9; }
.callout { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--row); border-left: 3px solid var(--purple); color: #ddd; }
.callout--warn { border-left-color: var(--red); }
.path { font-family: var(--font); font-size: .9em; background: #222326; border: 1px solid #2d2e32; padding: 1px 8px; border-radius: 6px; color: #fff; white-space: nowrap; }
.path--wrap { white-space: normal; }

/* 404 */
.nf { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding-block: 64px; }
.nf img { width: 150px; margin: 0 auto 10px; animation: float 5.5s ease-in-out infinite; }
.nf-code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; }
.nf h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 8px; }
.nf p { color: var(--muted); margin: 14px auto 28px; max-width: 42ch; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.nf-rune { margin-top: 30px; font-size: .88rem; color: var(--dim); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); margin-top: clamp(40px, 6vw, 80px); padding: 56px 0 36px; background: linear-gradient(180deg, transparent, #050506); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 34ch; font-size: .94rem; }
.site-footer h2 { font-size: .9rem; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer-links { list-style: none; display: grid; gap: 4px; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; padding: 5px 0; text-decoration: none; color: #dcdcdc; font-size: .95rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-links svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; }

/* ==========================================================================
   Scroll reveal (only when JS is on and motion is allowed)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: .06s; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: .12s; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: .18s; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: .24s; }
.js .reveal-stagger.is-in > *:nth-child(6) { transition-delay: .3s; }
.js .reveal-stagger.is-in > *:nth-child(n+7) { transition-delay: .36s; }

/* Hero load sequence */
.js .hero-copy > * { animation: rise .9s var(--ease) both; }
.js .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.js .hero-stage .phone { animation: rise 1.1s .15s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
  .hero-bot, .cta img, .nf img, .hero-glow, .hero-wave svg { animation: none !important; }
}

@media print {
  .site-header, .site-footer, .toc, .hero-wave, .hero-glow { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-sec, .summary-card { border: 1px solid #ccc; background: #fff; }
  .legal-sec p, .legal-sec li { color: #000; }
}

/* small helpers */
.why-link { color: #fff; text-underline-offset: 4px; }
.section-head--flush { margin-bottom: 0; }
.f-card img { width: 64px; height: 64px; margin: -4px; }
.why-card img { width: 80px; height: 80px; margin: -4px; }
.f-detail > img { width: 64px; height: 64px; margin: -4px; }
.latest { align-items: start; }
@media (min-width: 900px) {
  .soon-list { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding-bottom: 0; }
}
.page-hero { overflow-x: clip; }
html, body { overflow-x: clip; }
.legal > *, .f-detail > *, .latest > * { min-width: 0; }
.legal-sections > *, .legal-sec > * { min-width: 0; }
@media (max-width: 639px) {
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 4px; }
  .legal-table tr + tr { margin-top: 10px; }
  .legal-table td { border: 0; padding: 6px 12px; }
  .legal-table td:first-child { font-size: 1rem; }
  .legal-table td:not(:first-child)::before { content: attr(data-label); display: block; color: var(--muted); font-size: .76rem; margin-bottom: 2px; }
}

/* performance + contrast refinements */
.hero-glow { filter: none; will-change: transform;
  background:
    radial-gradient(closest-side, rgba(145, 4, 255, .42), transparent),
    radial-gradient(closest-side at 30% 30%, rgba(239, 76, 40, .3), transparent),
    radial-gradient(closest-side at 70% 75%, rgba(23, 41, 255, .36), transparent); }
.hero-wave svg, .hero-bot, .cta img, .nf img { will-change: transform; }
.legal-sec h2 .n, .toc a::before, .nf-rune { color: #8a8b8f; }

/* ---------- Lookuru AI (engine) ---------- */
.badge--ai { color: #D9C2FF; background: rgba(145, 4, 255, .12); border-color: rgba(181, 140, 255, .65); }
.engine {
  display: grid; gap: 28px; align-items: center;
  padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background: radial-gradient(90% 120% at 0% 0%, rgba(145, 4, 255, .22), transparent 60%),
              radial-gradient(80% 120% at 100% 100%, rgba(23, 41, 255, .16), transparent 60%), var(--card);
}
@media (min-width: 900px) { .engine { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.engine > * { min-width: 0; }
.engine-copy img { width: 80px; height: 80px; margin: -6px 0 10px -6px; }
.engine-copy h2, .engine-copy h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); letter-spacing: -0.02em; }
.engine-lead { color: #d4d4d4; margin-top: 12px; font-size: 1.06rem; max-width: 40ch; }
.engine-tag { margin-top: 14px; color: var(--muted); font-size: .9rem; }
.engine-stat { margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .45); border: 1px solid var(--border-2); }
.engine-stat strong { display: block; font-weight: 500; font-size: 1.05rem; }
.engine-stat small { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }
.engine-card { background: rgba(0, 0, 0, .55); border: 1px solid var(--border-2); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); }
.engine-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.engine-list { list-style: none; display: grid; gap: 8px; }
.engine-list li { display: grid; gap: 6px 16px; align-items: center; background: var(--row); border-radius: 10px; padding: 12px 14px; }
@media (min-width: 560px) { .engine-list li { grid-template-columns: minmax(0, 1fr) auto; } }
.engine-list li > div > b { display: block; font-weight: 500; color: #fff; }
.engine-ex b { font-weight: 500; }
.engine-list li > div > span { color: var(--muted); font-size: .84rem; }
.engine-ex { font-size: .88rem; color: #e8e8e8; }
.engine-note { margin-top: 14px; color: var(--muted); font-size: .86rem; }

.soon--updates { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.soon--updates h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
.soon-lead { color: var(--muted); margin-top: 10px; max-width: 52ch; }
.soon-lead b { color: #fff; font-weight: 500; }
.soon--updates img { width: 112px; height: 112px; flex: none; }
@media (max-width: 560px) { .soon--updates img { display: none; } }

/* Free limits (features page) */
.limits { display: grid; gap: 12px; }
@media (min-width: 820px) { .limits { grid-template-columns: repeat(3, 1fr); } }
.limit { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.limit-num { font-size: 2rem; font-weight: 600; line-height: 1.1; }
.limit h3 { font-size: 1.02rem; margin-top: 6px; }
.limit p { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.limits-note { margin-top: 16px; color: var(--muted); }
.limits-note b { color: #fff; font-weight: 500; }

/* Licences (terms) */
.lic-list { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.lic-list li { background: var(--row); border-radius: 10px; padding: 12px 14px; padding-left: 14px !important; }
.lic-list li::before { display: none; }
.lic-list b { color: #fff; font-weight: 500; display: block; }
