/*
 * Curated Files website. Same tokens as the app (docs/design/DESIGN-GUIDE.md section 3): system fonts, neutral cool
 * greys, one blue accent, light and dark following the device. No gradients, no see-through panels, no pills, no
 * coloured edge bars, no decorative motion.
 */
:root {
  color-scheme: light dark;
  --win: #F3F4F7;
  --bg: #FFFFFF;
  --side: #F6F7F9;
  --raise: #FFFFFF;
  --hover: #F3F5F8;
  --sel: #EDF1FD;
  --sel-line: #D3DBF7;
  --line: #ECEEF2;
  --line-2: #DEE1E7;
  --control: #8A909B;
  --ink: #0F1115;
  --ink-2: #434954;
  --ink-3: #5F6672;
  --accent: #3049C9;
  --accent-ink: #2C43BA;
  --on-accent: #FFFFFF;
  --accent-wash: #F0F3FE;
  --hl: #FFEFA8;
  --hl-ink: #0F1115;
  --panel-shadow: 0 1px 2px rgba(15, 17, 21, .04), 0 6px 24px rgba(15, 17, 21, .05);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --win: #0E0F11; --bg: #16171A; --side: #1B1C20; --raise: #1C1D21; --hover: #1F2125; --sel: #212843;
    --sel-line: #33407A; --line: #24262B; --line-2: #2F3238; --control: #6E7480; --ink: #EDEEF1; --ink-2: #B6BBC4;
    --ink-3: #8E949E; --accent: #8FA6FF; --accent-ink: #A5B7FF; --on-accent: #0C1233; --accent-wash: #1B2138;
    --hl: #574711; --hl-ink: #FFF3C4; --panel-shadow: 0 0 0 1px rgba(255, 255, 255, .03);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--sans); letter-spacing: -.003em; font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- header and footer ---------- */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.015em; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand svg { flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: .95rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding: .35rem 0; display: inline-block; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .nav { margin-left: 0; width: 100%; } }

.site-foot { border-top: 1px solid var(--line); margin-top: 5rem; padding: 2rem 0 3rem; color: var(--ink-3); font-size: .9rem; }
.site-foot .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .site-foot .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot h2 { font-size: .8rem; font-weight: 600; margin: 0 0 .5rem; color: var(--ink-3); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.site-foot a { color: var(--ink-2); }
.site-foot p { margin: 0 0 .5rem; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -.022em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.25rem); font-weight: 650; letter-spacing: -.028em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); max-width: 36rem; }
.prose { max-width: 38rem; }
.prose h2 { margin: 2.6rem 0 .8rem; font-size: 1.45rem; }
.prose h3 { margin: 1.8rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.meta, .caption { font-size: .9rem; color: var(--ink-3); }
.label { font-size: .85rem; font-weight: 600; color: var(--ink-3); margin: 0 0 .6rem; }
code, .mono { font-family: var(--mono); font-size: .9em; }
kbd { font: inherit; font-size: .85em; border: 1px solid var(--line-2); border-radius: 5px; padding: .05em .4em; background: var(--side); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  font: 600 1rem var(--sans); letter-spacing: -.005em; padding: .55rem 1.15rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--raise); color: var(--ink); text-decoration: none;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .75; }
.row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
form.inline { display: inline; margin: 0; }
/* The beta's sign-up: a label, an email field and one button. */
.beta { margin-top: 1.5rem; }
.beta .lead { margin: 0; }
.signup { margin: 1rem 0 0; max-width: 32rem; }
.signup label { display: block; font-weight: 600; margin: 0 0 .4rem; }
.signup-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.signup input { flex: 1 1 14rem; min-width: 0; min-height: 44px; font: inherit; padding: .55rem .75rem; border: 1px solid var(--control); border-radius: 8px; background: var(--bg); color: var(--ink); }

/* ---------- sections ---------- */
section { padding: 4rem 0 0; }
.hero { padding: 3.5rem 0 0; }
@media (min-width: 900px) { .hero { padding-top: 5rem; } }
.hero .lead { margin: 1.25rem 0 1.75rem; }
.hero small, .note { color: var(--ink-3); font-size: .9rem; }
.hero .row + p { margin-top: .9rem; }
.split { display: grid; gap: 2rem 3.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-right { grid-template-columns: 5fr 7fr; } .split.wide-left { grid-template-columns: 7fr 5fr; } }
.tint { background: var(--side); border-radius: 12px; padding: 1.4rem 1.5rem; }
.tint > :last-child { margin-bottom: 0; }
.tint h3 { margin-bottom: .4rem; }

/* ---------- the four answers ---------- */
.states { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.states li { display: grid; grid-template-columns: 22px 1fr; gap: 0 12px; }
.states svg { margin-top: .32em; }
.states b { display: block; font-size: 1.05rem; }
.states span { color: var(--ink-2); font-size: .98rem; }
.mark { flex: none; }
.mark.use, .mark.check { color: var(--accent); }
.mark.cant { color: var(--ink); }
.mark.unread, .mark.only { color: var(--ink-3); }

/* ---------- screenshots ---------- */
figure { margin: 0; }
figcaption { margin-top: .7rem; font-size: .9rem; color: var(--ink-3); max-width: 44rem; }
.shot { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--win); box-shadow: var(--panel-shadow); }
.shot img { width: 100%; }

/* ---------- the demonstration ---------- */
.demo-wrap { margin-top: 3rem; }
.demo { border: 1px solid var(--line-2); border-radius: 14px; background: var(--win); box-shadow: var(--panel-shadow); overflow: hidden; }
.demo-bar { text-align: center; font-size: .82rem; font-weight: 600; color: var(--ink-2); padding: 9px 0 8px; }
.demo-panel { background: var(--bg); border-radius: 12px; margin: 0 8px 8px; padding: 14px 14px 16px; min-height: 28rem; position: relative; }
.demo-search { display: flex; align-items: center; gap: 8px; background: var(--side); border-radius: 10px; padding: 10px 12px; font-size: .98rem; color: var(--ink); }
.demo-search svg { color: var(--ink-3); flex: none; }
.demo-head, .demo-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.4fr) 5.2rem; gap: 12px; align-items: center; }
.demo-head { font-size: .78rem; color: var(--ink-3); padding: 14px 10px 6px; }
.demo-row { padding: 7px 10px; border-radius: 10px; font-size: .9rem; line-height: 1.3; }
.demo-row .t { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-row .s { color: var(--ink-3); font-size: .8rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-row .d { text-align: right; color: var(--ink-3); font-size: .82rem; }
.demo-row .v { display: grid; grid-template-columns: 16px 1fr; gap: 0 8px; }
.demo-row .v b { font-weight: 600; font-size: .9rem; }
.demo-row .v span { grid-column: 2; }
.demo-row.sel { background: var(--sel); }
.demo-stack { display: grid; }
.demo-stack > * { grid-area: 1 / 1; }
.demo-cap { font-size: .95rem; font-weight: 600; margin: 0 0 4px; }
.verdict { background: var(--accent-wash); border-radius: 12px; padding: 14px 16px; margin-top: 12px; font-size: .92rem; }
.verdict .vh { margin: 0; font-weight: 650; font-size: 1rem; display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.verdict .vh svg { margin-top: .22em; color: var(--accent); }
.verdict p { margin: .55rem 0 0; color: var(--ink-2); }
.verdict hr { border: 0; border-top: 1px solid var(--sel-line); margin: .75rem 0; }
.verdict dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; margin: .5rem 0 .8rem; }
.verdict dt { color: var(--ink-3); } .verdict dd { margin: 0; }
.fake-btn { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: .88rem; padding: .4rem .8rem; border-radius: 8px; }
.demo-tools { display: flex; align-items: center; gap: 1rem; margin-top: .8rem; }
.demo-tools button { min-height: 36px; padding: .3rem .8rem; font-size: .9rem; }
.no-js .demo-tools, .demo-tools[hidden] { display: none; }

/* animated mode: three frames stacked, played once */
.js .frame { opacity: 0; }
.js .demo.play .f1 { animation: f1 15s linear forwards; }
.js .demo.play .f2 { animation: f2 15s linear forwards; }
.js .demo.play .f3 { animation: f3 15s linear forwards; }
.js .demo.paused, .js .demo.paused * { animation-play-state: paused !important; }
.js .demo:not(.play) .f1 { opacity: 1; }
@keyframes f1 { 0%, 38% { opacity: 1; } 46%, 100% { opacity: 0; visibility: hidden; } }
@keyframes f2 { 0%, 38% { opacity: 0; } 46%, 100% { opacity: 1; } }
@keyframes f3 { 0%, 66% { opacity: 0; } 74%, 100% { opacity: 1; } }
@keyframes rowout { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px); } }
.js .demo.play .demo-row.fr { animation: rowout .5s ease-in forwards; animation-delay: calc(var(--i) * 0.05s + 4.9s); }

/* static mode: no script, or reduced motion. Every frame is visible, in order, with its own caption. */
.no-js .frame, .static .frame { opacity: 1 !important; animation: none !important; }
.no-js .demo-stack, .static .demo-stack { display: block; }
.no-js .frame + .frame, .static .frame + .frame { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.no-js .demo-panel, .static .demo-panel { min-height: 0; }
@media (prefers-reduced-motion: reduce) {
  .demo-tools { display: none; }
  .frame { opacity: 1 !important; animation: none !important; visibility: visible !important; }
  .demo-stack { display: block; }
  .frame + .frame { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
  .demo-panel { min-height: 0; }
  .demo-row.fr { animation: none !important; transform: none !important; }
}
@media (max-width: 640px) {
  .demo-head { grid-template-columns: 1fr 5rem; }
  .demo-head span:nth-child(2) { display: none; }
  .demo-row { grid-template-columns: 1fr 5rem; }
  .demo-row .v { grid-column: 1 / -1; grid-row: 2; padding-top: 2px; }
  .frame.f2 .demo-row .v, .frame.f3 .demo-row .v { grid-row: 2; }
  .demo-row .d { grid-column: 2; grid-row: 1; }
}

/* ---------- pricing ---------- */
.plans { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--side); border-radius: 12px; padding: 1.5rem; display: grid; gap: .6rem; align-content: start; }
.plan h2, .plan h3 { font-size: 1rem; color: var(--ink-2); letter-spacing: -.01em; font-weight: 650; }
.price { font-size: 2.5rem; font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.plan p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.plan form { margin-top: .6rem; }
.plan .btn { width: 100%; }
.ticks { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .55rem; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 0 10px; }
.ticks svg { margin-top: .3em; color: var(--accent); }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ---------- steps, details, tables ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem 0; display: grid; gap: 1.4rem; max-width: 40rem; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: 0 14px; }
.steps > li::before { content: counter(s); font-weight: 650; color: var(--accent-ink); font-size: 1.15rem; line-height: 1.35; }
.steps h2, .steps h3 { margin-bottom: .25rem; font-size: 1.1rem; letter-spacing: -.01em; line-height: 1.3; }
.steps p { margin: 0 0 .5rem; color: var(--ink-2); }
details { border-top: 1px solid var(--line); padding: .9rem 0; max-width: 44rem; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: grid; grid-template-columns: 1fr 16px; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .12s ease-out; justify-self: end; margin-top: -4px; }
details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
details > :not(summary) { margin-top: .7rem; color: var(--ink-2); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .65rem .9rem .65rem 0; border-top: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; width: 34%; }
.table-wrap { overflow-x: auto; }
.draft { background: var(--side); border: 1px solid var(--line-2); border-radius: 12px; padding: 1rem 1.2rem; margin: 2rem 0 0; max-width: 44rem; }
.draft b { display: block; margin-bottom: .2rem; }
.draft p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.crumb { font-size: .9rem; color: var(--ink-3); margin-bottom: .5rem; }
.page-head { padding: 3rem 0 0; }
.page-head .lead { margin-top: 1rem; }
.toc { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: .95rem; }
.platform { padding: 1.4rem 0; border-top: 1px solid var(--line); display: grid; gap: .6rem; max-width: 44rem; }
.platform:last-of-type { border-bottom: 1px solid var(--line); }
.platform h2 { font-size: 1.3rem; }
.warn-box { background: var(--side); border-radius: 12px; padding: 1.1rem 1.3rem; max-width: 40rem; }
.warn-box p { margin: 0 0 .5rem; }
.warn-box q { font-weight: 600; quotes: "\201C" "\201D"; }

/* small spacing helpers (no inline styles: the pages' policy forbids them) */
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: 2rem; } .mt-25 { margin-top: 2.5rem; } .mt-3 { margin-top: 3rem; }
.mt-14 { margin-top: 1.4rem; } .mt-15 { margin-top: 1.5rem; } .mb-1 { margin-bottom: 1rem; } .gap-15 { height: 1.5rem; }
.narrow { max-width: 46rem; } .r { text-align: right; }
.i0 { --i: 0; }
.i1 { --i: 1; }
.i2 { --i: 2; }
.i3 { --i: 3; }
.i4 { --i: 4; }
.i5 { --i: 5; }
.i6 { --i: 6; }
.i7 { --i: 7; }
.i8 { --i: 8; }
.i9 { --i: 9; }

.verdict .vh { color: var(--ink); }
h3 .mark { vertical-align: -2px; margin-right: 6px; }
h1, h2 { text-wrap: balance; }
h1 { max-width: 22ch; }
.demo-row .v > .s:only-child { grid-column: 1 / -1; }

.split > * { min-width: 0; }
@media (max-width: 760px) {
  .shot { overflow-x: auto; }
  .shot img { width: 760px; max-width: none; }
}
