/* Sillyfie website. Colors come from the app icon. */

:root {
  --violet: #2A1A6E;
  --violet-deep: #160E3A;
  --cream: #FFF3E6;
  --ink: #1A1240;
  --pink: #FF4F7B;
  --orange: #FF9F43;
  --yellow: #FFE15C;
  --mint: #3FE0B0;
  --blue: #3FA2FF;
  --purple: #8A5CFF;
  --rainbow: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--mint), var(--blue), var(--purple));
  --muted: rgba(255, 243, 230, 0.72);
  --panel: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 243, 230, 0.12);
  --radius: 28px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--cream);
  background-color: var(--violet-deep);
  background-image:
    radial-gradient(900px 600px at 15% -10%, rgba(138, 92, 255, 0.35), transparent 70%),
    radial-gradient(700px 500px at 100% 30%, rgba(255, 79, 123, 0.12), transparent 70%),
    linear-gradient(180deg, var(--violet) 0%, var(--violet-deep) 900px);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: var(--cream); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.rainbow-bar { height: 6px; background: var(--rainbow); }

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

/* Header */

.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--cream); text-decoration: none;
  font-size: 22px; font-weight: 800;
}
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo:hover { color: var(--cream); }

.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--cream); text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--panel); }
.nav a[aria-current="page"] { background: rgba(255, 243, 230, 0.12); }

/* Hero */

.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; justify-items: center; text-align: center; }

.hero-icon { position: relative; width: min(280px, 70vw); }
.hero-icon::before {
  content: ""; position: absolute; inset: -12%;
  background: conic-gradient(from 200deg, var(--pink), var(--orange), var(--yellow), var(--mint), var(--blue), var(--purple), var(--pink));
  filter: blur(60px); opacity: 0.45; border-radius: 50%;
}
.hero-icon img {
  position: relative; width: 100%; height: auto;
  border-radius: 22.4%;
  box-shadow: 0 30px 60px rgba(10, 5, 30, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero h1 { font-size: clamp(56px, 10vw, 88px); margin-bottom: 0.1em; }
.tagline { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin-bottom: 20px; }
.pitch { font-size: 20px; color: var(--muted); max-width: 34em; }

.soon {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 12px; padding: 12px 22px 12px 14px;
  border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font-weight: 800; font-size: 17px;
  box-shadow: 0 10px 30px rgba(10, 5, 30, 0.4);
}
.soon .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: conic-gradient(var(--pink), var(--orange), var(--yellow), var(--mint), var(--blue), var(--purple), var(--pink));
  flex: none;
}
.soon small { display: block; font-weight: 600; font-size: 13px; opacity: 0.7; line-height: 1.2; }
.soon span { line-height: 1.2; text-align: left; }

@media (min-width: 860px) {
  .hero { padding: 72px 0 96px; }
  .hero .wrap { grid-template-columns: 340px 1fr; gap: 64px; justify-items: start; text-align: left; }
  .hero-icon { width: 340px; }
}

/* Sections */

.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mint);
}

/* Steps */

.steps { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.step p { color: var(--muted); margin: 0; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: var(--ink);
  margin-bottom: 16px;
}

/* Features */

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
  padding: 24px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 16px; margin: 0; }
.feature .note { display: block; margin-top: 8px; font-size: 14px; color: var(--yellow); }

.chip {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 16px;
  color: var(--ink);
}
.chip svg { width: 26px; height: 26px; }

.bg-pink { background: var(--pink); }
.bg-orange { background: var(--orange); }
.bg-yellow { background: var(--yellow); }
.bg-mint { background: var(--mint); }
.bg-blue { background: var(--blue); }
.bg-purple { background: var(--purple); }

/* Kids and privacy panel */

.panel-cream {
  position: relative;
  background: var(--cream); color: var(--ink);
  border-radius: 36px; padding: 48px 28px;
  overflow: hidden;
}
.panel-cream::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: var(--rainbow);
}
.panel-cream h2 { color: var(--ink); }
.panel-cream .eyebrow { color: #7A4CF0; }
.panel-cream a { color: #5B34D6; }
.panel-cream p { color: rgba(26, 18, 64, 0.8); }

@media (min-width: 760px) { .panel-cream { padding: 64px; } }

.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .checks { grid-template-columns: 1fr 1fr; gap: 16px 32px; } }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.checks li::before {
  content: ""; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1240' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Viewfinder frame, like the corners on the icon */

.frame {
  position: relative; padding: 48px 36px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M3 37V17A14 14 0 0 1 17 3h20' fill='none' stroke='%23FFF3E6' stroke-width='5' stroke-linecap='round' transform='rotate(0 20 20)'/%3E%3C/svg%3E") top left / 40px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M3 37V17A14 14 0 0 1 17 3h20' fill='none' stroke='%23FFF3E6' stroke-width='5' stroke-linecap='round' transform='rotate(90 20 20)'/%3E%3C/svg%3E") top right / 40px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M3 37V17A14 14 0 0 1 17 3h20' fill='none' stroke='%23FFF3E6' stroke-width='5' stroke-linecap='round' transform='rotate(180 20 20)'/%3E%3C/svg%3E") bottom right / 40px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M3 37V17A14 14 0 0 1 17 3h20' fill='none' stroke='%23FFF3E6' stroke-width='5' stroke-linecap='round' transform='rotate(270 20 20)'/%3E%3C/svg%3E") bottom left / 40px no-repeat;
}

/* Tip */

.tip { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .tip { grid-template-columns: 1fr 1fr; gap: 48px; } }
.tip p { color: var(--muted); }

.howto { margin: 0; padding: 0; list-style: none; counter-reset: howto; display: grid; gap: 12px; }
.howto li {
  counter-increment: howto;
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 18px;
}
.howto li::before {
  content: counter(howto);
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 16px;
}

/* Text pages */

.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(40px, 7vw, 60px); }
.page-head .lead { font-size: 20px; color: var(--muted); }
.meta { font-size: 15px; color: var(--muted); }

.doc { padding-bottom: 72px; }
.doc h2 { font-size: 26px; margin-top: 48px; }
.doc h3 { margin-top: 28px; }
.doc p, .doc li { color: rgba(255, 243, 230, 0.86); }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }
.doc li::marker { color: var(--mint); }
.doc strong { color: var(--cream); }

.summary {
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius); padding: 28px;
  margin: 24px 0 8px;
}
.summary h2 { margin-top: 0; color: var(--ink); font-size: 22px; }
.summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.summary li { color: var(--ink); margin: 0; display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.summary li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1240' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* FAQ */

.faq { display: grid; gap: 12px; margin-top: 16px; }
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 0 22px;
}
.faq details[open] { background: rgba(255, 255, 255, 0.08); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 800; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1240' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 18px; }
.faq details p:last-child, .faq details ol:last-child { margin-bottom: 0; }
.faq ol { padding-left: 1.3em; }

.contact { margin-top: 48px; text-align: center; }
.contact h2 { margin-top: 0; }
.contact p { color: var(--muted); }

.button {
  display: inline-block; margin-top: 8px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 30px rgba(10, 5, 30, 0.4);
  word-break: break-all;
}
.button:hover { background: var(--yellow); color: var(--ink); }

/* Footer */

.site-footer { margin-top: 24px; padding: 40px 0 48px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--cream); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--yellow); }
.site-footer small { color: var(--muted); font-size: 15px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

@media (max-width: 480px) {
  body { font-size: 17px; }
  .section { padding: 56px 0; }
  .frame { padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
