/* Scavaro website. Brand colors match the TV app (apps/tv/src/ui/theme.ts). */

@font-face { font-family: 'Fredoka'; font-weight: 400; font-display: swap; src: url('/assets/fonts/fredoka-400.woff') format('woff'); }
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('/assets/fonts/fredoka-500.woff') format('woff'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('/assets/fonts/fredoka-600.woff') format('woff'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('/assets/fonts/fredoka-700.woff') format('woff'); }

:root {
  /* Brand Kit v1.0 tokens (Scavaro_Color_Tokens.json). */
  --deep-purple: #3b0082;
  --midnight: #1a0f3d;
  --yellow: #ffd33d;
  --pink: #ff6b98;
  --green: #1ed760;
  --blue: #1da7ff;
  --purple: #a78bfa;
  --orange: #fb923c; /* wordmark "r"; not in the token file yet */

  --bg-top: var(--midnight);
  --bg-bottom: var(--deep-purple);
  --panel: rgba(255, 255, 255, 0.09);
  --card: #fbf9ff;
  --ink: var(--midnight);
  --ink-soft: #4a3f6b;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.8);
  --focus: var(--yellow);
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Fredoka', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-top);
  background-image: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
}

a { color: var(--focus); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--focus); color: var(--ink); padding: 8px 14px; z-index: 10; }

/* Header and footer ------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 20px var(--gutter);
}

.wordmark { display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; font-size: 30px; line-height: 1; }
.wordmark img { width: 30px; height: 30px; margin-left: 4px; }

.logo span { display: inline-block; text-shadow: 0 0.06em 0 rgba(0, 0, 0, 0.35); }
.logo span:nth-child(1) { color: var(--focus); transform: rotate(-4deg) translateY(-0.04em); }
.logo span:nth-child(2) { color: var(--pink); transform: rotate(4deg) translateY(0.04em); }
.logo span:nth-child(3) { color: var(--green); transform: rotate(-4deg) translateY(-0.04em); }
.logo span:nth-child(4) { color: var(--blue); transform: rotate(4deg) translateY(0.04em); }
.logo span:nth-child(5) { color: var(--purple); transform: rotate(-4deg) translateY(-0.04em); }
.logo span:nth-child(6) { color: var(--orange); transform: rotate(4deg) translateY(0.04em); }
.logo span:nth-child(7) { color: var(--focus); transform: rotate(-4deg) translateY(-0.04em); }

.site-nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.site-nav a { color: var(--text-soft); text-decoration: none; font-weight: 500; padding: 4px 2px; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--text); box-shadow: inset 0 -3px 0 var(--focus); }

main { flex: 1; width: 100%; }

.site-footer {
  padding: 32px var(--gutter) 40px;
  color: var(--text-soft);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.site-footer a { color: var(--text-soft); }

/* Coming-soon home -------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(40px, 9vh, 110px) var(--gutter) clamp(48px, 10vh, 120px);
}
.hero .logo { font-size: clamp(64px, 15vw, 168px); font-weight: 700; line-height: 1.05; margin: 0; display: inline-flex; align-items: flex-end; gap: 0.02em; }
.hero .logo img { width: 0.62em; height: 0.62em; margin-left: 0.08em; align-self: center; }
.tagline { font-size: clamp(22px, 3.4vw, 34px); font-weight: 500; color: var(--text-soft); margin: 8px 0 28px; }
.pill {
  display: inline-block;
  background: var(--focus);
  color: var(--deep-purple);
  font-weight: 700;
  font-size: 20px;
  padding: 10px 26px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px #fff, 0 10px 30px rgba(255, 211, 61, 0.35);
}
.hero p.lede { max-width: 640px; margin: 28px auto 0; font-size: 20px; color: var(--text-soft); }
.hero p.lede strong { color: var(--text); font-weight: 600; }

.floaters { position: absolute; inset: 0; pointer-events: none; }
.floaters img { position: absolute; width: clamp(48px, 7vw, 96px); opacity: 0.85; animation: bob 6s ease-in-out infinite; }
.floaters img:nth-child(1) { left: 6%; top: 18%; }
.floaters img:nth-child(2) { right: 7%; top: 14%; animation-delay: -1.5s; }
.floaters img:nth-child(3) { left: 10%; bottom: 10%; animation-delay: -3s; }
.floaters img:nth-child(4) { right: 9%; bottom: 14%; animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@media (max-width: 720px) { .floaters { display: none; } }
@media (prefers-reduced-motion: reduce) { .floaters img { animation: none; } }

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--panel); border-radius: var(--radius); padding: 22px 24px; }
.feature h2 { font-size: 21px; margin: 0 0 4px; font-weight: 600; }
.feature p { margin: 0; color: var(--text-soft); font-size: 17px; }

/* Audience badges, as on the brand board */
.audiences { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px clamp(12px, 3vw, 28px); margin: 36px 0 0; padding: 0; list-style: none; }
.audiences li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 500; color: var(--text-soft); }
.audiences .dot { width: clamp(52px, 13vw, 64px); height: clamp(52px, 13vw, 64px); border-radius: 50%; display: grid; place-items: center; font-size: 30px; box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.campaign { margin: 18px 0 0; font-weight: 700; font-size: clamp(20px, 3vw, 28px); color: var(--yellow); }

/* Document pages (privacy, terms, support) -------------------------------- */

.doc-head { max-width: 860px; margin: 0 auto; padding: 24px var(--gutter) 20px; }
.doc-head h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.1; margin: 0 0 8px; font-weight: 700; }
.doc-head p { margin: 0; color: var(--text-soft); }

.doc {
  max-width: 860px;
  margin: 0 auto 24px;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 56px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
@media (max-width: 900px) { .doc { margin-left: 16px; margin-right: 16px; } }
.doc a { color: var(--deep-purple); font-weight: 500; }
.doc h2 { font-size: 26px; line-height: 1.25; margin: 40px 0 10px; font-weight: 600; color: var(--deep-purple); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 20px; margin: 24px 0 6px; font-weight: 600; color: var(--deep-purple); }
.doc p, .doc li { color: #2b2150; }
.doc ul { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); font-weight: 600; }

.summary {
  background: #efe8ff;
  border-radius: 20px;
  padding: 18px 24px;
  margin-bottom: 8px;
}
.summary h2 { margin-top: 0; font-size: 22px; }
.summary ul { margin: 8px 0 0; }

.toc { columns: 2 220px; padding-left: 1.2em; margin: 12px 0 0; }
.toc li { margin: 4px 0; break-inside: avoid; }

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  background: var(--deep-purple);
  color: var(--text);
  border-radius: 20px;
  padding: 20px 24px;
  margin: 8px 0 8px;
}
.contact-card p { margin: 0; color: var(--text-soft); }
.contact-card strong { color: var(--text); }
.button {
  display: inline-block;
  background: var(--yellow);
  color: var(--deep-purple) !important;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
}

.faq details { border-bottom: 1px solid rgba(30, 26, 60, 0.12); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; padding: 12px 0; list-style-position: outside; }
.faq details[open] summary { color: var(--deep-purple); }
.faq details > *:not(summary) { margin-top: 0; }

.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; margin: 12px 0; }
.key {
  display: inline-block;
  min-width: 52px;
  text-align: center;
  background: var(--ink);
  color: var(--card);
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 16px;
}

/* Not found ---------------------------------------------------------------- */
.notfound { text-align: center; padding: 80px var(--gutter); }
.notfound h1 { font-size: clamp(36px, 7vw, 64px); margin: 12px 0; }
.notfound img { width: 120px; height: 120px; }
