/* Blinky's landing page. Colours and type come from Sources/Blinky/Style in the app
   (Palette.swift, BlinkyFonts.swift), the same set the server's legal pages use.
   Fonts are Latin subsets of the app's own files, served from this site only. */
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #F1F0FF; --surface: #FFFFFF; --ink: #221B3A; --body: #4A4360; --muted: #6B6585;
  --accent: #5B4BDB; --line: #E4E2EE; --btn-bg: #221B3A; --btn-ink: #FFFFFF;
  --hero-glow: #FFF8E0; --soon-bg: #E2DEF7;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Nunito", system-ui, sans-serif; }
img, svg { display: block; }

.skip { position: absolute; left: 16px; top: -60px; padding: 10px 16px; border-radius: 12px; background: var(--btn-bg); color: var(--btn-ink); font-weight: 800; z-index: 1; }
.skip:focus { top: 12px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 48px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 24px; min-height: 44px; }
.brand img { width: 36px; height: 36px; }
.top-link { color: var(--ink); font-weight: 800; font-size: 15px; min-height: 44px; display: flex; align-items: center; text-decoration: none; }
.top-link:hover { text-decoration: underline; text-underline-offset: 4px; }

main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.hero { text-align: center; padding: 56px 0 48px; }
.sunny { width: 168px; height: 168px; margin: 0 auto 24px; padding: 14px; border-radius: 50%; background: var(--hero-glow); box-sizing: content-box; }
.eye { transform-box: fill-box; transform-origin: center; animation: blink 6s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
h1 { margin: 0 auto; max-width: 15ch; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 56px; line-height: 1.05; }
.pitch { margin: 18px auto 0; max-width: 34em; font-size: 20px; line-height: 1.55; font-weight: 600; color: var(--body); }

.btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; min-height: 60px; padding: 0 32px; border-radius: 30px; background: var(--btn-bg); color: var(--btn-ink); font: 800 19px "Nunito", sans-serif; text-decoration: none; box-shadow: 0 6px 18px rgb(34 27 58 / .18); transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; }
.needs { margin: 14px 0 0; font-size: 15px; font-weight: 700; color: var(--muted); }

.soon { display: none; max-width: 30em; margin: 20px auto 0; padding: 14px 18px; border-radius: 14px; background: var(--soon-bg); color: var(--ink); font-weight: 700; line-height: 1.5; }
.soon:target { display: block; }
.soon a { color: var(--ink); }

h2 { margin: 0 0 20px; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 32px; line-height: 1.15; text-align: center; }
h3 { margin: 14px 0 6px; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 21px; }
.card p, .privacy p { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 500; color: var(--body); }

.features { padding: 24px 0 40px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { padding: 24px; background: var(--surface); border-radius: 22px; }
.dot { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--tint); font-size: 24px; }

.privacy { max-width: 720px; margin: 8px auto 56px; padding: 32px; border-radius: 22px; background: var(--surface); text-align: center; }
.privacy h2 { margin-bottom: 10px; font-size: 26px; }

.foot { max-width: 1040px; margin: 0 auto; padding: 24px 24px 48px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--body); font-size: 15px; font-weight: 600; border-top: 1px solid var(--line); }
.foot nav { display: flex; gap: 0 20px; flex-wrap: wrap; }
.foot a { color: var(--ink); font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }

a:focus-visible, .soon:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eye { animation: none; }
  .btn { transition: none; }
}

@media (max-width: 600px) {
  .top { padding: 10px 16px; }
  main { padding: 0 16px; }
  .hero { padding: 36px 0 32px; }
  .sunny { width: 128px; height: 128px; }
  h1 { font-size: 38px; }
  .pitch { font-size: 18px; }
  .btn { width: 100%; justify-content: center; }
  h2 { font-size: 27px; }
  .privacy { padding: 24px 20px; margin-bottom: 40px; }
  .foot { padding: 20px 16px 36px; flex-direction: column; align-items: flex-start; }
}
