/* YLYF website: ylyf.app. Brand colours and fonts are the app's own (app/src/theme/tokens.ts). */
@font-face { font-family: 'RF Logo'; src: url('/assets/fonts/rf-logo.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'RF Display'; src: url('/assets/fonts/rf-display.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'RF Heading'; src: url('/assets/fonts/rf-heading.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'RF Pill'; src: url('/assets/fonts/rf-pill.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Geologica'; src: url('/assets/fonts/geologica-400.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geologica'; src: url('/assets/fonts/geologica-500.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geologica'; src: url('/assets/fonts/geologica-600.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geologica'; src: url('/assets/fonts/geologica-700.woff') format('woff'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07070b;
  --surface: #111118;
  --card: #101016;
  --line: #262632;
  --text: #f5f5fa;
  --soft: #c9c9d8;
  --muted: #a6a6ba;
  --faint: #7c7c90;
  --cyan: #2ef2f2;
  --violet: #8b5cff;
  --pink: #ff2d6f;
  --edge: linear-gradient(135deg, #2ef2f2 0%, #8b5cff 50%, #ff2d6f 100%);
  --cta: linear-gradient(135deg, #8452ff 0%, #e02862 100%);
  --body: 'Geologica', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'RF Display', 'Geologica', -apple-system, sans-serif;
  --heading: 'RF Heading', 'Geologica', -apple-system, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header */
.top { position: relative; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.wordmark {
  font-family: 'RF Logo', var(--display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: -2px 0 var(--cyan), 2px 0 var(--pink);
}
.top nav { display: flex; gap: 22px; font-weight: 500; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--soft); }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 36px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 13px/1 'RF Pill', var(--body);
  letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--text);
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.5px;
  margin: 22px 0 20px;
}
h1 .grad { background: var(--edge); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); max-width: 34em; margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 176px; padding: 11px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.store small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.store strong { font: 400 18px/1.25 var(--heading); }

/* Fanned memes, like the app's welcome screen */
.fan { position: relative; height: 470px; }
.fan::before {
  content: ''; position: absolute; inset: -12% -18%;
  background:
    radial-gradient(42% 48% at 30% 50%, rgba(46, 242, 242, 0.40) 0%, rgba(46, 242, 242, 0) 100%),
    radial-gradient(42% 48% at 52% 46%, rgba(139, 92, 255, 0.55) 0%, rgba(139, 92, 255, 0) 100%),
    radial-gradient(42% 48% at 72% 52%, rgba(255, 45, 111, 0.45) 0%, rgba(255, 45, 111, 0) 100%);
  filter: blur(8px);
}
.fan img {
  position: absolute; top: 50%; left: 50%;
  width: min(300px, 62vw); aspect-ratio: 1;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.60);
}
.fan .back-l { transform: translate(-86%, -56%) rotate(-11deg); }
.fan .back-r { transform: translate(-14%, -48%) rotate(10deg); }
.fan .front { transform: translate(-50%, -56%); }
.fan .actions { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 18px; }
.fan .actions span {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
}
.fan .actions .like { background: var(--cta); border: 0; box-shadow: 0 12px 30px rgba(255, 45, 111, 0.45); }

/* Sections */
section { padding: 72px 0; }
.eyebrow { font: 400 13px/1 'RF Pill', var(--body); letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin: 0 0 36px; }
h3 { font-family: var(--heading); font-weight: 400; font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
.grid { display: grid; gap: 18px; }
.steps { grid-template-columns: repeat(3, 1fr); }
.safety { grid-template-columns: repeat(2, 1fr); }
.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
}
.box p { margin: 0; color: var(--muted); }
.num {
  display: inline-block; font: 400 40px/1 var(--display);
  background: var(--edge); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(139, 92, 255, 0.14); color: #c4b0ff; }
.ico svg { width: 22px; height: 22px; }
.soon { text-align: center; padding: 64px 0 80px; }
.soon .wordmark { font-size: 56px; }
.soon p { color: var(--soft); margin: 18px auto 0; max-width: 30em; }
.soon a { color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--faint); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 18px; }
footer .links a { color: var(--soft); text-decoration: none; }
footer .links a:hover { color: var(--text); text-decoration: underline; }
footer p { margin: 6px 0; }
footer .credits a { color: var(--faint); }

/* Text pages (privacy, terms, support, account deletion) */
.doc { max-width: 760px; padding: 28px 0 72px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin: 12px 0 10px; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 40px 0 12px; }
.doc p, .doc li { color: var(--soft); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); font-weight: 600; }
.doc .box { margin: 22px 0; }
.doc .box p { color: var(--soft); }
.draft {
  border: 1px dashed #ffb23e; background: rgba(255, 178, 62, 0.08); color: #ffd28c;
  border-radius: 14px; padding: 12px 16px; font-size: 15px; margin: 0 0 24px;
}
mark.todo { background: rgba(255, 178, 62, 0.22); color: #ffd28c; padding: 0 4px; border-radius: 4px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font: 400 19px/1.35 var(--heading); color: var(--text); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--muted); font-family: var(--body); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; }
.cta-mail {
  display: inline-block; margin-top: 6px; padding: 14px 22px; border-radius: 999px;
  background: var(--cta); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 14px 34px rgba(255, 45, 111, 0.35);
}

@media (max-width: 900px) {
  .hero { padding-top: 16px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 12px; }
  .fan { height: 400px; }
  .steps { grid-template-columns: 1fr; }
  .safety { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .top nav { gap: 14px; font-size: 14px; }
  .top nav .hide-s { display: none; }
  .store { min-width: 0; flex: 1; padding: 10px 14px; }
  .fan { height: 340px; }
  .fan img { width: 56vw; }
  .fan .actions span { width: 52px; height: 52px; }
  section { padding: 52px 0; }
  .box { padding: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .fan .front { animation: float 6s ease-in-out infinite; }
  @keyframes float { 50% { transform: translate(-50%, -59%); } }
}
