/* SpellIt landing page. Colors and fonts mirror the app's brand tokens (packages/frontend/src/index.css). */
:root {
  --grape: #7b5cf5;
  --grape-light: #9c84ff;
  --grape-deep: #4a2fc0;
  --grape-ink: #5a3dd8;
  --grape-tint: #f1ecff;
  --gold: #ffc23a;
  --gold-light: #ffe07a;
  --gold-deep: #e39a00;
  --mint: #2ec28b;
  --mint-deep: #1d9a6c;
  --coral: #ff9466;
  --sky: #58b8ff;
  --paper: #fbf7f0;
  --ink: #241d3f;
  --muted: #5f5878;
  --line: #e7e1f5;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(74, 47, 192, 0.25);
  --font-ui: 'Rubik', system-ui, Arial, sans-serif;
  --font-word: 'Fredoka', 'Rubik', system-ui, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--grape-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
[lang='en'] h1, [lang='en'] h2, [lang='en'] .logo-word { font-family: var(--font-word); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.tinted { background: linear-gradient(180deg, #f4efff 0%, #fbf7f0 100%); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block; margin-bottom: 12px; font-weight: 700; font-size: 0.9rem;
  color: var(--grape-ink); letter-spacing: 0.02em;
}
.eyebrow.light { color: var(--gold-light); }
.lead { font-size: 1.15rem; color: var(--muted); }
.em { font-weight: 600; color: var(--grape-deep); font-size: 1.1rem; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* Logo: the app's gradient "א" tile + Fredoka wordmark */
.logo { display: inline-flex; align-items: center; gap: 10px; direction: ltr; }
.logo-tile {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(165deg, #a994ff, #7b5cf5 55%, #5a3dd8);
  color: #fff; font-family: var(--font-word); font-weight: 600; font-size: 22px;
  box-shadow: 0 4px 10px -4px rgba(90, 61, 216, 0.6);
}
.logo-word { font-family: var(--font-word); font-weight: 600; font-size: 1.6rem; color: var(--grape-ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, 0.85); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(123, 92, 245, 0.1);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.home-link { text-decoration: none; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.97rem; }
.nav a:hover { color: var(--grape); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--grape-light); color: var(--grape-ink); font-weight: 700; text-decoration: none; font-size: 0.95rem;
  background: #fff;
}
.lang-switch svg { width: 18px; height: 18px; }
.lang-switch:hover { background: var(--grape-tint); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px; border-radius: 16px; font-weight: 700; font-size: 1.05rem;
  text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; border-radius: 12px; }
.btn-primary { background: var(--grape); color: #fff; box-shadow: 0 4px 0 var(--grape-deep); }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #3b2a00; box-shadow: 0 5px 0 var(--gold-deep); }
.btn-ghost { background: #fff; color: var(--grape-ink); border: 2px solid var(--line); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #e2eeff 0%, #eee8ff 50%, #fbf7f0 100%);
  padding: clamp(40px, 7vw, 90px) 0 clamp(56px, 8vw, 110px);
}
.hero::after {
  content: ''; position: absolute; inset-inline: -10%; bottom: -120px; height: 220px;
  background: radial-gradient(60% 100% at 25% 100%, #dff3ea 60%, transparent 61%),
              radial-gradient(60% 100% at 80% 100%, #e6deff 60%, transparent 61%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--grape-ink);
  font-weight: 700; font-size: 0.88rem; box-shadow: var(--shadow);
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--grape); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-blob { position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #f3efff 70%, transparent 71%); }
.hero-oti { position: relative; width: min(360px, 80%); filter: drop-shadow(0 18px 24px rgba(74, 47, 192, 0.18)); }
.tile {
  position: absolute; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: #fff; font-family: var(--font-word); font-weight: 700; font-size: 28px; box-shadow: var(--shadow);
}
.t1 { top: 8%; inset-inline-start: 10%; color: var(--mint-deep); transform: rotate(-8deg); }
.t2 { top: 18%; inset-inline-end: 6%; color: var(--grape); transform: rotate(9deg); }
.t3 { bottom: 10%; inset-inline-start: 18%; color: var(--coral); transform: rotate(6deg); }

/* Solution cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid #efeafa; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--grape-tint); color: var(--grape); }
.status { font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status-live { background: #e3f7ee; color: var(--mint-deep); }
.status-dev { background: #fff3d6; color: #8a5b00; }
.card-dev { border-style: dashed; border-color: #f0d69a; }

/* Oti */
.oti-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.oti-art { display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, #efe9ff 0 55%, transparent 56%); padding: 20px; }
.oti-art img { width: min(380px, 100%); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.checks li::before { content: '✓'; display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--mint); color: #fff; font-size: 14px; }

/* Product gallery with device frames */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: end; }
.span-2 { grid-column: 1 / -1; }
.shot { margin: 0; }
.shot figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 0.95rem; }
.frame-laptop { background: #1f1a33; border-radius: 18px 18px 6px 6px; padding: 12px 12px 18px; box-shadow: 0 30px 50px -25px rgba(36, 29, 63, 0.5); position: relative; }
.frame-laptop::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: -14px; height: 14px; background: linear-gradient(#cfcadb, #a9a3b8); border-radius: 0 0 14px 14px; }
.frame-laptop img { border-radius: 8px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-laptop { padding-bottom: 14px; }
.shot-phone { justify-self: center; width: min(300px, 100%); }
.frame-phone { background: #1f1a33; border-radius: 38px; padding: 10px; box-shadow: 0 30px 50px -25px rgba(36, 29, 63, 0.5); }
.frame-phone img { border-radius: 29px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aud { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.aud .icon { margin-bottom: 14px; background: #fff3d6; color: var(--gold-deep); }
.aud p { color: var(--muted); margin: 0; }

.founder { margin-top: 28px; padding: 22px 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Contact */
.contact-card {
  position: relative; text-align: center; max-width: 820px; margin-inline: auto; color: #fff;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 64px);
  border-radius: 32px; background: linear-gradient(160deg, #9479ff, #7b5cf5 50%, #5a3dd8);
  box-shadow: 0 30px 60px -30px rgba(74, 47, 192, 0.7);
}
.contact-card h2 { color: #fff; }
.contact-card p { color: #ece7ff; }
.contact-oti { width: 130px; margin: -100px auto 8px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.2)); }
.contact-mail { margin-top: 22px; }
.contact-mail a { color: #fff; font-weight: 700; }
.hint { font-size: 0.88rem; opacity: 0.85; margin: 0; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 40px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
.footer-inner .muted { margin: 10px 0 0; font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--grape); text-decoration: underline; }
.copyright { grid-column: 1 / -1; font-size: 0.88rem; border-top: 1px solid var(--line); padding-top: 18px; }

/* Legal page */
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }

/* Gentle motion (JS adds .js; content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.float { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .hero-inner, .oti-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; order: -1; }
  .hero-oti { width: min(260px, 70%); }
  .oti-art { order: -1; }
  .audience { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .shot-phone { width: min(260px, 80%); }
  .cta-row .btn { flex: 1 1 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .tile { width: 46px; height: 46px; font-size: 22px; }
  .logo-word { font-size: 1.4rem; }
}

/* 404 */
.center { text-align: center; }
.notfound-oti { width: 220px; margin: 0 auto 20px; }
.founder-quote { margin: 14px 0 16px; padding: 14px 18px; border-inline-start: 4px solid var(--grape); background: var(--grape-tint); border-radius: 12px; }
.founder-quote p { margin: 0; font-weight: 600; font-size: 1.08rem; color: var(--grape-deep); }
.founder-quote footer { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
