/* fling.so: one stylesheet for the marketing pages. Colours follow the app (lib/src/ui/theme). */
@font-face { font-family: Figtree; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/figtree-regular.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/figtree-medium.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/figtree-semibold.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/figtree-bold.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/figtree-extrabold.woff2) format('woff2'); }
:root {
  --blue: #1E22E6; --blue-text: #1E22E6; --blue-tint: #E9E9FD; --ink: #111219; --text2: #4A4D5E; --text3: #3E4152;
  --mist: #F3F4FB; --paper: #FFFFFF; --line: #E6E8F2; --mint: #DDF3E4; --spark: #FFC83D; --shadow: rgba(17,18,25,.10);
  --radius: 28px; --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root { --blue: #4B50FF; --blue-text: #8A8FFF; --blue-tint: #23264D; --ink: #F3F4FB; --text2: #B4B7C8; --text3: #C9CCDA;
    --mist: #1C1D27; --paper: #111219; --line: #2A2C3A; --mint: #15332A; --shadow: rgba(0,0,0,.4); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: Figtree, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; font-size: 17px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
a { color: var(--blue-text); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
header.top .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--blue-text); display: inline-flex; }
.brand svg { width: 96px; height: auto; }
nav.links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
nav.links a { color: var(--text3); text-decoration: none; }
nav.links a:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 22px; border: 0; background: var(--blue); color: #fff !important; font: 700 15px Figtree, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.pill.soft { background: var(--mist); color: var(--ink) !important; }

/* Type */
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; }
h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.06; font-weight: 800; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text3); max-width: 560px; margin: 22px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--mint); font-size: 14px; font-weight: 700; }
.muted { color: var(--text2); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px 0 80px; }
.hero h1 { margin-top: 22px; }
.shots { position: relative; min-height: 600px; }
.phone { width: 300px; border-radius: 44px; padding: 10px; background: #0B0C12; box-shadow: 0 30px 80px var(--shadow), 0 2px 6px var(--shadow); }
.phone img { border-radius: 34px; }
.shots .phone { position: absolute; right: 30px; top: 0; }
.shots .panel { position: absolute; left: 0; top: 150px; width: 270px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px var(--shadow), 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { .phone { background: #2A2C3A; } }

/* Early access form */
form.early { margin-top: 30px; display: flex; gap: 10px; max-width: 470px; }
form.early input[type=email] { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 500 16px Figtree, sans-serif; }
form.early input[type=email]:focus { outline: none; border-color: var(--blue); }
form.early .pill { height: 52px; border-radius: 16px; }
.fine { font-size: 14px; color: var(--text2); margin-top: 10px; }
.thanks { margin-top: 30px; padding: 16px 18px; border-radius: 16px; background: var(--mint); font-weight: 600; max-width: 470px; }
.hp { position: absolute; left: -9999px; }

/* Sections */
section.band { padding: 90px 0; }
section.tint { background: var(--mist); }
.head { max-width: 680px; margin-bottom: 44px; }
.head p { color: var(--text3); font-size: 19px; margin: 16px 0 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--mist); }
section.tint .card { background: var(--paper); }
.card p { margin: 10px 0 0; color: var(--text3); }
.num { width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue-text); font-weight: 800; margin-bottom: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split .phone { margin: 0 auto; }
ul.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
ul.ticks li { display: flex; gap: 12px; color: var(--text3); }
ul.ticks li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 11px; background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E22E6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
ul.ticks b { color: var(--ink); }
.devices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.device { padding: 22px 18px; border-radius: 22px; background: var(--paper); }
.device b { display: block; font-size: 17px; margin-top: 14px; }
.device span { display: block; font-size: 14.5px; color: var(--text2); margin-top: 6px; line-height: 1.45; }
.device .soon { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 9px; background: var(--spark); color: #111219; }
.glyph { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plan { padding: 30px; border-radius: var(--radius); background: var(--mist); }
.plan.plus { background: var(--ink); color: var(--paper); }
.plan.plus p, .plan.plus li { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.plan.plus ul.ticks b { color: var(--paper); }
.plan h3 { font-size: 26px; }
.plan .tag { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 10px; background: var(--spark); color: #111219; vertical-align: 4px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; color: var(--blue-text); font-size: 24px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--text3); margin: 12px 0 0; max-width: 760px; }
.cta { text-align: center; padding: 90px 0; }
.cta .lede { margin: 18px auto 0; }
.cta form.early { margin: 30px auto 0; }

/* Footer */
footer { background: #111219; color: #C9CCDA; padding: 44px 0 50px; font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer a { color: #C9CCDA; text-decoration: none; margin-left: 22px; }
footer a:hover { color: #fff; }
footer .brand { color: #8A8FFF; margin-left: 0; }

/* Prose pages (privacy) */
.prose { max-width: 760px; padding: 40px 0 90px; }
.prose h1 { font-size: clamp(38px, 5vw, 54px); }
.prose h2 { font-size: 26px; margin-top: 44px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--text3); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); }

@media (max-width: 960px) {
  .hero, .split { grid-template-columns: 1fr; }
  .shots { min-height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .grid3, .plans { grid-template-columns: 1fr; }
  .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav.links a.hide-sm { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 20px; }
  .shots { min-height: 470px; }
  .shots .phone { width: 230px; right: 0; border-radius: 36px; padding: 8px; }
  .shots .phone img { border-radius: 28px; }
  .shots .panel { width: 200px; top: 120px; }
  form.early { flex-direction: column; }
  form.early input[type=email] { flex: none; }
  section.band { padding: 64px 0; }
  .devices { grid-template-columns: 1fr; }
  footer a { margin: 0 18px 0 0; }
}
