/* Shelfroll site. Palette is taken from the app icon's gradient. */
:root {
  --bg: #fbfbfd; --bg-soft: #f3f4f8; --fg: #14151a; --muted: #5b5f6b; --line: #e3e5ec;
  --card: #ffffff; --link: #4a54d6; --btn-bg: #14151a; --btn-fg: #ffffff;
  --yellow: #ffc800; --green: #3ccf74; --cyan: #3bb8ea; --violet: #6f78ee; --pink: #d4558f;
  --spectrum: linear-gradient(100deg, var(--yellow), var(--green) 28%, var(--cyan) 55%, var(--violet) 80%, var(--pink));
  --shadow: 0 1px 2px rgba(20, 21, 26, .05), 0 12px 32px -12px rgba(20, 21, 26, .18);
  --glow: .35;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f13; --bg-soft: #15161c; --fg: #f4f5f8; --muted: #a2a6b3; --line: #262831;
    --card: #181920; --link: #9aa3ff; --btn-bg: #f4f5f8; --btn-fg: #0e0f13;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -12px rgba(0, 0, 0, .6);
    --glow: .22;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--link); }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 44rem; }

/* header */
header.site { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: var(--fg); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }
nav a.nav-cta { color: var(--btn-fg); background: var(--btn-bg); padding: 6px 14px; border-radius: 999px; font-weight: 600; }

/* buttons */
.button { display: inline-block; background: var(--btn-bg); color: var(--btn-fg); padding: 12px 24px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.button.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--glow); z-index: -1; }
.hero::before { width: 520px; height: 520px; left: -160px; top: -200px; background: radial-gradient(circle, var(--cyan), transparent 70%); }
.hero::after { width: 560px; height: 560px; right: -180px; top: -120px; background: radial-gradient(circle, var(--pink), var(--yellow) 55%, transparent 72%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--spectrum); display: inline-block; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.7rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; }
.grad { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.fine { font-size: .9rem; color: var(--muted); margin-top: 14px; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 460px; height: auto; }

/* sections */
section.block { padding: 64px 0; }
section.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }
.section-head { max-width: 40rem; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: var(--spectrum); }
.card .ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }

/* folder card */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; overflow-x: auto; font: .88rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: var(--shadow); margin: 0 0 14px; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre code { border: 0; padding: 0; background: none; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--spectrum); }

/* pricing */
.price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 8px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card.featured { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--spectrum) border-box; }
.note { color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta { margin: 0 auto; border-radius: 28px; background: var(--btn-bg); color: var(--btn-fg); padding: 48px 28px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 100%; background: var(--spectrum); opacity: .35; filter: blur(60px); }
.cta > * { position: relative; }
.cta h2 { margin-bottom: 8px; }
.cta p { opacity: .8; margin: 0 0 22px; }
.cta .button { background: var(--btn-fg); color: var(--btn-bg); }

/* inner pages */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 10px; }
main.inner { padding-bottom: 64px; }
main.inner h2 { font-size: 1.4rem; margin: 40px 0 8px; }
main.inner h3 { margin: 22px 0 4px; }
main.inner p, main.inner ul, main.inner ol { margin: 0 0 14px; }

/* footer */
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; padding: 28px 0 40px; margin-top: 32px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
footer.site a { color: var(--muted); margin-right: 18px; text-decoration: none; }
footer.site a:hover { color: var(--fg); }
footer.site .brand { font-size: 1rem; }
footer.site .brand img { width: 26px; height: 26px; }

/* motion */
.flow { stroke-dasharray: 6 8; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) { .flow { animation: none; } html { scroll-behavior: auto; } .button { transition: none; } }

@media (max-width: 820px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid.three, .steps { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  section.block { padding: 48px 0; }
}
