/* Spopple site: the app's look. White page, ink type, a quiet halftone of dots, the four dots as the only colour. */
:root {
  --ink: #111111; --sub: #6b6b6b; --line: #e4e4e4; --panel: #f4f4f2; --bg: #ffffff;
  --red: #e11d2e; --yellow: #f5c518; --blue: #1d4ed8;
  --dot: rgba(17, 17, 17, 0.09);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f4f4f2; --sub: #8d8d8a; --line: #2e2e2e; --panel: #1c1c1c; --bg: #0c0c0c; --dot: rgba(244, 244, 242, 0.1); --blue: #7d9bff; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background-color: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(var(--dot) 1.3px, transparent 1.6px);
  background-size: 8px 8px;
}
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: -0.3px; text-decoration: none; }
.brand img { height: 18px; }
.nav { display: flex; gap: 6px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 6px 24px rgba(0,0,0,.12); display: block; }
h1 { font-size: clamp(40px, 6.2vw, 64px); line-height: 1.04; letter-spacing: -1.6px; margin-top: 28px; font-weight: 800; }
.lede { font-size: 19px; color: var(--sub); margin-top: 18px; max-width: 30em; }
.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 0 26px; height: 56px; border-radius: 28px;
       background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 17px; }
.cta svg { width: 18px; height: 22px; fill: currentColor; }
.small { font-size: 14px; color: var(--sub); margin-top: 12px; }

/* phones */
.phones { position: relative; height: 620px; }
.phone { position: absolute; width: 270px; border-radius: 44px; padding: 9px; background: #0d0d0d; box-shadow: 0 30px 60px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.2); }
.phone img { display: block; width: 100%; border-radius: 36px; }
.phone.back { left: 0; top: 60px; transform: rotate(-5deg); }
.phone.front { right: 0; top: 0; transform: rotate(4deg); }

/* sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.9px; line-height: 1.1; font-weight: 800; }
.sub { color: var(--sub); font-size: 18px; margin-top: 10px; max-width: 36em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.card h3 { font-size: 19px; margin-top: 14px; letter-spacing: -0.2px; }
.card p { color: var(--sub); margin-top: 6px; }
.num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; }
.n1 { background: var(--red); } .n2 { background: var(--yellow); color: #111; } .n3 { background: var(--blue); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.shots figure { margin: 0; }
.shots img { width: 100%; display: block; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.shots figcaption { font-size: 15px; color: var(--sub); margin-top: 10px; text-align: center; }
.list { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.list div { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-weight: 500; }
.list span { display: block; font-weight: 400; color: var(--sub); font-size: 15px; margin-top: 2px; }

/* text pages */
.page { max-width: 760px; padding: 40px 0 80px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); }
.updated { color: var(--sub); font-size: 15px; margin-top: 10px; }
.page h2 { font-size: 24px; letter-spacing: -0.4px; margin-top: 40px; }
.page h3 { font-size: 18px; margin-top: 22px; }
.page p, .page li { margin-top: 10px; font-size: 17px; }
.page ul, .page ol { padding-left: 22px; }
.note { margin-top: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.note p:first-child { margin-top: 0; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--sub); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { text-decoration: none; margin-left: 16px; }
footer a:first-child { margin-left: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .phones { height: 520px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { width: 220px; border-radius: 36px; } .phone img { border-radius: 29px; }
  .steps, .shots, .list { grid-template-columns: 1fr; }
  .shots { max-width: 340px; margin-left: auto; margin-right: auto; }
}

/* dark mode: the note's black dots turn light, phones get an edge so they don't vanish into the page */
.brand .dark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand .light { display: none; }
  .brand .dark { display: inline; }
  .phone { box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.18); }
}

/* How it works: phones that slide sideways as the page scrolls */
.how { padding-bottom: 0; }
.hs { margin-top: 28px; }
.hs-track { display: flex; gap: 24px; padding: 8px 20px 64px; overflow-x: auto; scroll-snap-type: x mandatory; }
.hs.on .hs-stick { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hs.on .hs-track { overflow: visible; will-change: transform; padding-left: max(20px, calc((100vw - 1040px) / 2 + 20px)); padding-right: 12vw; }
.panel { flex: 0 0 auto; display: flex; align-items: center; gap: 36px; width: min(760px, 86vw); scroll-snap-align: start; }
.panel .phone { position: relative; flex: 0 0 auto; width: min(300px, 46vw); }
.panel-text { max-width: 320px; }
.panel-text h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.6px; line-height: 1.15; margin-top: 16px; font-weight: 800; }
.panel-text p { color: var(--sub); font-size: 18px; margin-top: 10px; }
@media (max-width: 820px) {
  .panel { flex-direction: column; align-items: flex-start; gap: 18px; width: 78vw; }
  .panel .phone { width: min(260px, 62vw); }
  .hs.on .hs-stick { align-items: flex-start; padding-top: 6vh; }
}

/* With WebGL2 the page background is the app's flowing ink dots (site/dither.js) instead of the static pattern */
html.ink-bg { background: var(--bg); }
html.ink-bg body { background: transparent; }
