/* Pulli website. Same typeface, colours and calm surfaces as the app. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans.woff") format("woff");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f5f3ef;
  --bg-top: #eaecf7;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --ink: #1b1c21;
  --muted: #5d5f6c;
  --faint: #8a8c98;
  --line: rgba(20, 22, 40, 0.09);
  --accent: #3a5be0;
  --accent-2: #2a44c4;
  --accent-soft: rgba(58, 91, 224, 0.1);
  --accent-ink: #2f4cd0;
  --warm: #f1e2c4;
  --warm-ink: #8a5a12;
  --ok: #2f9e5b;
  --shadow: 0 1px 2px rgba(20, 22, 40, 0.05), 0 12px 32px -12px rgba(20, 22, 40, 0.16);
  --shadow-lg: 0 2px 6px rgba(20, 22, 40, 0.05), 0 40px 80px -32px rgba(30, 36, 80, 0.32);
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131418;
    --bg-top: #1a1c27;
    --surface: #1c1e24;
    --surface-2: #191a1f;
    --ink: #f1f1f4;
    --muted: #a5a7b3;
    --faint: #7c7e8a;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #6c88ff;
    --accent-2: #4f6cf0;
    --accent-soft: rgba(108, 136, 255, 0.14);
    --accent-ink: #8ea4ff;
    --warm: #3a2f1c;
    --warm-ink: #e8b866;
    --ok: #4cc27c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 40px 80px -32px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 900px);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  background: color-mix(in srgb, var(--bg-top) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  font-size: 14px; font-weight: 600; color: #fff; padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px -6px rgba(58, 91, 224, 0.6);
}
.nav-cta:hover { text-decoration: none; filter: brightness(1.06); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 24px; text-align: center; }
.hero-icon { width: 112px; height: 112px; margin: 0 auto 28px; filter: drop-shadow(0 18px 28px rgba(30, 40, 110, 0.22)); }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--accent-ink); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 750; margin: 0 auto 22px; max-width: 14ch; text-wrap: balance;
}
h1 .soft { color: var(--muted); font-weight: 600; }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 40ch; margin: 0 auto 36px; text-wrap: pretty; }

.download {
  display: inline-flex; align-items: center; gap: 16px; padding: 12px 30px 12px 12px;
  border-radius: 999px; color: #fff; text-align: left;
  background: linear-gradient(180deg, #5876f2 0%, var(--accent) 45%, var(--accent-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 36px -14px rgba(46, 72, 200, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.download:hover { text-decoration: none; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 22px 40px -14px rgba(46, 72, 200, 0.8); }
.download:active { transform: translateY(0); }
.download .dl-icon {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.18);
  display: grid; place-items: center; flex: none;
}
.download strong { display: block; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.download small { display: block; font-size: 14px; opacity: 0.86; }
.hero-note { font-size: 14px; color: var(--faint); margin: 16px 0 0; }

.brew {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; max-width: 100%;
  padding: 6px 6px 6px 16px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px;
}
.brew span { color: var(--faint); white-space: nowrap; }
.brew code { color: var(--ink); overflow-x: auto; white-space: nowrap; }
.copy-btn {
  flex: none; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 6px 12px; min-width: 64px;
}
.copy-btn:hover { background: var(--accent-soft); }
@media (max-width: 560px) {
  .brew span { display: none; }
  .download { padding-right: 22px; gap: 12px; }
  .download .dl-icon { width: 44px; height: 44px; }
  .download strong { font-size: 20px; }
  .download small { font-size: 12.5px; }
}

.showcase { margin: 56px auto 0; max-width: 1100px; }
.showcase img { width: 100%; border-radius: 18px; }

/* ---------- Sections ---------- */

section { padding: 104px 0; scroll-margin-top: 48px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 12px; }
h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 750; margin: 0 0 18px; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; margin: 0 0 8px; }
.section-head p { font-size: 19px; color: var(--muted); margin: 0; text-wrap: pretty; }

/* Everything in one app: capability grid */
.everything { padding-top: 80px; }
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 112px; }
.cap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.cap h3 { font-size: 18px; }
.cap p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px; }
@media (max-width: 960px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .caps { grid-template-columns: 1fr; } }

/* Big transfers: the block strip */
.big { background: var(--surface-2); border-block: 1px solid var(--line); }
.strip-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 28px 28px 24px; max-width: 920px; margin: 0 auto 64px;
}
.strip-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.strip-file { font-weight: 650; font-size: 17px; }
.strip-file small { color: var(--faint); font-weight: 500; margin-left: 6px; }
.strip-status { font-size: 15px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; min-height: 24px; }
.strip-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.strip-status[data-state="paused"] { color: var(--warm-ink); }
.strip-status[data-state="paused"] .dot { background: var(--warm-ink); }
.strip-status[data-state="done"] { color: var(--ok); }
.strip-status[data-state="done"] .dot { background: var(--ok); }
.blocks { display: grid; grid-template-columns: repeat(40, 1fr); gap: 4px; }
.blocks i { aspect-ratio: 1 / 2.2; border-radius: 4px; background: var(--line); transition: background 0.25s, transform 0.25s; }
.blocks i.on { background: var(--accent); }
.blocks i.saved { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.blocks i.head { transform: scaleY(1.12); background: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.blocks i.cut { background: var(--warm-ink); }
.strip-legend { display: flex; gap: 8px 22px; margin-top: 16px; font-size: 14px; color: var(--faint); flex-wrap: wrap; }
.strip-legend b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
@media (max-width: 640px) { .blocks { grid-template-columns: repeat(20, 1fr); } .blocks i:nth-child(n+41) { display: none; } }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 20px; }
.case .if { font-size: 14px; font-weight: 600; color: var(--warm-ink); margin: 0 0 6px; }
.case p { margin: 0; font-size: 16px; color: var(--muted); }
.case p strong { color: var(--ink); font-weight: 650; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cases { grid-template-columns: 1fr; } }

.how { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-top: 88px; align-items: start; }
.how ol { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.how li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 26px; color: var(--muted); }
.how li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--accent-ink); background: var(--accent-soft);
}
.how li strong { color: var(--ink); display: block; font-size: 18px; margin-bottom: 2px; }
.how h3 { font-size: 26px; margin-bottom: 24px; }
.tested { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.tested .label { font-size: 14px; font-weight: 600; color: var(--faint); margin: 0 0 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-bottom: 20px; }
.stat b { display: block; font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 750; }
.stat span { font-size: 14px; color: var(--muted); }
.tested p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; gap: 36px; } }

/* Features */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) { grid-template-columns: 7fr 5fr; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text p { color: var(--muted); font-size: 18px; margin: 0; }
.feature-text h3 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.025em; margin-bottom: 12px; }
.feature-text .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feature-text .tags span { font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.feature picture img { border-radius: 16px; }
@media (max-width: 860px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 24px; margin-bottom: 72px; }
  .feature:nth-child(even) .feature-text { order: 0; }
}

/* Get started */
.start { background: var(--surface-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.step b { color: var(--ink); font-weight: 650; }
.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.req { border-radius: var(--radius); padding: 24px 28px; border: 1px dashed var(--line); }
.req h3 { font-size: 17px; }
.req p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps, .reqs { grid-template-columns: 1fr; } }

/* Open source */
.oss-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.oss-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); color: var(--ink); }
a.oss-card { transition: transform 0.15s ease, border-color 0.15s ease; }
a.oss-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); }
.oss-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.oss-card .more { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.oss-card pre { margin: 4px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); overflow-x: auto; font-size: 14px; line-height: 1.7; }
.privacy-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 40px 0 18px; padding: 0; list-style: none; }
.privacy-list li { font-size: 15px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.oss-foot { text-align: center; margin: 0; }
@media (max-width: 860px) { .oss-grid { grid-template-columns: 1fr; } }

/* Final call */
.final { text-align: center; padding-top: 40px; }
.final .card {
  border-radius: 32px; padding: 64px 24px; color: #fff;
  background: radial-gradient(120% 140% at 50% 0%, #6a86ff 0%, #3a5be0 45%, #2238a8 100%);
  box-shadow: var(--shadow-lg);
}
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, 0.85); font-size: 19px; margin: 0 auto 32px; max-width: 40ch; }
.final .download { background: #fff; color: #2238a8; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.45); }
.final .download .dl-icon { background: rgba(58, 91, 224, 0.12); }
.final .hero-note { color: rgba(255, 255, 255, 0.75); }
.final .hero-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
footer { padding: 48px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer .brand { font-size: 16px; }
footer .brand img { width: 24px; height: 24px; }

/* Plain text pages (privacy) */
.doc { padding: 64px 0 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); text-align: left; margin: 0 0 8px; max-width: none; }
.doc .updated { color: var(--faint); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--muted); }
.doc p strong, .doc li strong { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 10px; }
.doc .big-no { font-size: 22px; color: var(--ink); font-weight: 650; letter-spacing: -0.01em; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Download note */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 20; width: max-content; max-width: calc(100% - 32px);
  transform: translate(-50%, 140%); opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease;
  padding: 14px 20px; border-radius: 16px; font-size: 15px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.toast b { color: var(--ink); margin-right: 4px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
